File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ if(CUDA_FOUND)
47
47
message (STATUS "CMAKE_CUDA_ARCHITECTURES: ${CMAKE_CUDA_ARCHITECTURES} " )
48
48
49
49
#Add empty project as its not required with newer CMake
50
- add_library (pcl_cuda INTERFACE )
50
+ PCL_ADD_LIBRARY (pcl_cuda COMPONENT ekstern_cuda )
51
51
else ()
52
52
# Generate SASS
53
53
set (CMAKE_CUDA_ARCHITECTURES ${CUDA_ARCH_BIN} )
@@ -56,7 +56,7 @@ if(CUDA_FOUND)
56
56
set (CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -gencode arch=compute_${ver} ,code=compute_${ver} " )
57
57
message (STATUS "CMAKE_CUDA_FLAGS: ${CMAKE_CUDA_FLAGS} " )
58
58
59
- add_library (pcl_cuda INTERFACE )
59
+ PCL_ADD_LIBRARY (pcl_cuda COMPONENT ekstern_cuda )
60
60
target_include_directories (pcl_cuda INTERFACE ${CUDA_TOOLKIT_INCLUDE} )
61
61
62
62
endif ()
Original file line number Diff line number Diff line change @@ -290,9 +290,17 @@ function(PCL_CUDA_ADD_LIBRARY _name)
290
290
set_target_properties (${_name} PROPERTIES FOLDER "Libraries" )
291
291
292
292
install (TARGETS ${_name}
293
+ EXPORT ${_name} Targets
293
294
RUNTIME DESTINATION ${BIN_INSTALL_DIR} COMPONENT pcl_${ARGS_COMPONENT}
294
295
LIBRARY DESTINATION ${LIB_INSTALL_DIR} COMPONENT pcl_${ARGS_COMPONENT}
295
296
ARCHIVE DESTINATION ${LIB_INSTALL_DIR} COMPONENT pcl_${ARGS_COMPONENT} )
297
+
298
+ install (
299
+ EXPORT ${_name} Targets
300
+ NAMESPACE pcl::
301
+ FILE ${_name} .cmake
302
+ DESTINATION ${LIB_INSTALL_DIR} /cmake
303
+ )
296
304
endfunction ()
297
305
298
306
###############################################################################
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ set(incs
37
37
set (LIB_NAME "pcl_${SUBSYS_NAME} " )
38
38
include_directories ("${CMAKE_CURRENT_SOURCE_DIR} /include" )
39
39
PCL_CUDA_ADD_LIBRARY(${LIB_NAME} COMPONENT ${SUBSYS_NAME} SOURCES ${srcs} ${incs} )
40
- target_link_libraries (${LIB_NAME} pcl_common)
40
+ target_link_libraries (${LIB_NAME} pcl_common pcl_io )
41
41
42
42
PCL_MAKE_PKGCONFIG(${LIB_NAME} COMPONENT ${SUBSYS_NAME} DESC ${SUBSYS_DESC} PCL_DEPS ${SUBSYS_DEPS} EXT_DEPS ${SUBSYS_EXT_DEPS} )
43
43
You can’t perform that action at this time.
0 commit comments