File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,9 @@ set(impl_incs
3030)
3131
3232set (LIB_NAME "pcl_${SUBSYS_NAME} " )
33- PCL_ADD_LIBRARY(${LIB_NAME} COMPONENT ${SUBSYS_NAME} )
33+ PCL_ADD_LIBRARY(${LIB_NAME} COMPONENT ${SUBSYS_NAME} INCLUDES ${incs} ${impl_incs} )
3434target_link_libraries (${LIB_NAME} INTERFACE pcl_filters)
35+
3536PCL_MAKE_PKGCONFIG(${LIB_NAME} COMPONENT ${SUBSYS_NAME} DESC ${SUBSYS_DESC} PCL_DEPS ${SUBSYS_DEPS} HEADER_ONLY)
3637
3738#Install include files
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ endmacro()
172172function (PCL_ADD_LIBRARY _name)
173173 set (options )
174174 set (oneValueArgs COMPONENT )
175- set (multiValueArgs SOURCES )
175+ set (multiValueArgs SOURCES INCLUDES )
176176 cmake_parse_arguments (ARGS "${options} " "${oneValueArgs} " "${multiValueArgs} " ${ARGN} )
177177
178178 if (ARGS_UNPARSED_ARGUMENTS)
@@ -184,13 +184,13 @@ function(PCL_ADD_LIBRARY _name)
184184 endif ()
185185
186186 if (NOT ARGS_SOURCES)
187- add_library (${_name} INTERFACE )
187+ add_library (${_name} INTERFACE ${ARGS_INCLUDES} )
188188
189189 target_include_directories (${_name} INTERFACE
190190 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
191191 $<INSTALL_INTERFACE:${INCLUDE_INSTALL_ROOT} >
192192 )
193-
193+ set_target_properties ( ${_name} PROPERTIES FOLDER "Libraries" )
194194 else ()
195195 add_library (${_name} ${PCL_LIB_TYPE} ${ARGS_SOURCES} )
196196 PCL_ADD_VERSION_INFO(${_name} )
Original file line number Diff line number Diff line change @@ -34,9 +34,8 @@ set(impl_incs
3434 "include/pcl/${SUBSYS_NAME} /impl/polygon_operations.hpp"
3535)
3636
37-
3837set (LIB_NAME "pcl_${SUBSYS_NAME} " )
39- PCL_ADD_LIBRARY(${LIB_NAME} COMPONENT ${SUBSYS_NAME} )
38+ PCL_ADD_LIBRARY(${LIB_NAME} COMPONENT ${SUBSYS_NAME} INCLUDES ${incs} ${impl_incs} )
4039target_link_libraries (${LIB_NAME} INTERFACE Boost::boost pcl_common)
4140
4241PCL_MAKE_PKGCONFIG(${LIB_NAME} COMPONENT ${SUBSYS_NAME} DESC ${SUBSYS_DESC} PCL_DEPS ${SUBSYS_DEPS} HEADER_ONLY)
You can’t perform that action at this time.
0 commit comments