File tree Expand file tree Collapse file tree 6 files changed +12
-28
lines changed Expand file tree Collapse file tree 6 files changed +12
-28
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ set(SUBSYS_NAME cuda)
2
2
set (SUBSYS_DESC "Point cloud CUDA libraries" )
3
3
set (SUBSYS_DEPS )
4
4
5
- option (BUILD_CUDA "Build the CUDA-related subsystems" ${DEFAULT} )
5
+ option (BUILD_CUDA "Build the CUDA-related subsystems" OFF )
6
6
7
7
if (NOT (BUILD_CUDA AND CUDA_FOUND ))
8
8
return ()
Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ set(SUBSYS_NAME examples)
2
2
set (SUBSYS_DESC "PCL examples" )
3
3
set (SUBSYS_DEPS common io features search kdtree octree filters keypoints segmentation sample_consensus outofcore stereo geometry surface )
4
4
5
- set (DEFAULT FALSE )
6
- set (REASON "Code examples are disabled by default." )
7
- PCL_SUBSYS_OPTION (build ${SUBSYS_NAME} ${SUBSYS_DESC} ${DEFAULT} ${REASON} )
5
+ PCL_SUBSYS_OPTION (build ${SUBSYS_NAME} ${SUBSYS_DESC} OFF )
8
6
PCL_SUBSYS_DEPEND (build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} )
9
7
10
8
if (NOT build )
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ set(SUBSYS_NAME gpu)
2
2
set (SUBSYS_DESC "Point cloud GPU libraries" )
3
3
set (SUBSYS_DEPS )
4
4
5
- option (BUILD_GPU "Build the GPU-related subsystems" ${DEFAULT} )
5
+ option (BUILD_GPU "Build the GPU-related subsystems" OFF )
6
6
7
7
if (NOT (BUILD_GPU AND CUDA_FOUND ))
8
8
return ()
Original file line number Diff line number Diff line change 1
1
set (SUBSYS_NAME people )
2
2
set (SUBSYS_DESC "Point cloud people library" )
3
3
set (SUBSYS_DEPS common kdtree search sample_consensus filters io visualization geometry segmentation octree )
4
-
5
- if (NOT VTK_FOUND )
6
- set (DEFAULT FALSE )
7
- set (REASON "VTK was not found." )
8
- else ()
9
- set (DEFAULT TRUE )
10
- set (REASON )
11
- include_directories ("${CMAKE_CURRENT_SOURCE_DIR} /include" )
12
- endif ()
4
+ set (EXT_DEPS vtk )
13
5
14
6
PCL_SUBSYS_OPTION (build "${SUBSYS_NAME} " "${SUBSYS_DESC} " ON )
15
- PCL_SUBSYS_DEPEND (build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} )
7
+ PCL_SUBSYS_DEPEND (build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} EXT_DEPS ${EXT_DEPS} )
16
8
17
9
PCL_ADD_DOC ("${SUBSYS_NAME} " )
18
10
Original file line number Diff line number Diff line change @@ -2,10 +2,8 @@ set(SUBSYS_NAME tools)
2
2
set (SUBSYS_DESC "Useful PCL-based command line tools" )
3
3
set (SUBSYS_DEPS io )
4
4
set (SUBSYS_OPT_DEPS filters sample_consensus segmentation search kdtree features surface octree registration recognition geometry keypoints ml visualization vtk )
5
- set (DEFAULT ON )
6
- set (REASON "" )
7
5
8
- PCL_SUBSYS_OPTION (build ${SUBSYS_NAME} ${SUBSYS_DESC} ${DEFAULT} ${REASON} )
6
+ PCL_SUBSYS_OPTION (build ${SUBSYS_NAME} ${SUBSYS_DESC} ON )
9
7
PCL_SUBSYS_DEPEND (build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS ${SUBSYS_OPT_DEPS} )
10
8
11
9
if (NOT build )
Original file line number Diff line number Diff line change @@ -2,16 +2,7 @@ set(SUBSYS_NAME visualization)
2
2
set (SUBSYS_DESC "Point cloud visualization library" )
3
3
set (SUBSYS_DEPS common io kdtree geometry search octree )
4
4
5
- if (NOT VTK_FOUND )
6
- set (DEFAULT FALSE )
7
- set (REASON "VTK was not found." )
8
- else ()
9
- set (DEFAULT TRUE )
10
- set (REASON )
11
- include_directories ("${CMAKE_CURRENT_SOURCE_DIR} /include" )
12
- endif ()
13
-
14
- PCL_SUBSYS_OPTION (build "${SUBSYS_NAME} " "${SUBSYS_DESC} " ${DEFAULT} "${REASON} " )
5
+ PCL_SUBSYS_OPTION (build "${SUBSYS_NAME} " "${SUBSYS_DESC} " ON )
15
6
PCL_SUBSYS_DEPEND (build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} EXT_DEPS vtk OPT_DEPS openni openni2 ensenso davidSDK dssdk rssdk )
16
7
17
8
if (ANDROID )
@@ -147,6 +138,11 @@ endif()
147
138
set (LIB_NAME "pcl_${SUBSYS_NAME} " )
148
139
PCL_ADD_LIBRARY (${LIB_NAME} COMPONENT ${SUBSYS_NAME} SOURCES ${srcs} ${incs} ${common_incs} ${impl_incs} ${common_impl_incs} ${vtk_incs} )
149
140
141
+ target_include_directories (${LIB_NAME} PUBLIC
142
+ $< BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include>
143
+ $< INSTALL_INTERFACE:include>
144
+ )
145
+
150
146
# apple workaround (continued)
151
147
if (APPLE )
152
148
target_link_libraries ("${LIB_NAME} " "-framework Cocoa" )
You can’t perform that action at this time.
0 commit comments