forked from PointCloudLibrary/pcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
50 lines (41 loc) · 1.93 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
set(SUBSYS_NAME segmentation)
set(SUBSYS_DESC "Point cloud segmentation library")
set(SUBSYS_DEPS common search sample_consensus kdtree octree)
set(build TRUE)
PCL_SUBSYS_OPTION(build ${SUBSYS_NAME} ${SUBSYS_DESC} ON)
PCL_SUBSYS_DEPEND(build ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS})
PCL_ADD_DOC(${SUBSYS_NAME})
if(build)
set(srcs src/extract_clusters.cpp
src/extract_polygonal_prism_data.cpp
src/sac_segmentation.cpp
src/seeded_hue_segmentation.cpp
src/segment_differences.cpp
src/region_growing.cpp
)
set(incs include/pcl/${SUBSYS_NAME}/extract_clusters.h
include/pcl/${SUBSYS_NAME}/extract_labeled_clusters.h
include/pcl/${SUBSYS_NAME}/extract_polygonal_prism_data.h
include/pcl/${SUBSYS_NAME}/sac_segmentation.h
include/pcl/${SUBSYS_NAME}/seeded_hue_segmentation.h
include/pcl/${SUBSYS_NAME}/segment_differences.h
include/pcl/${SUBSYS_NAME}/region_growing.h
)
set(impl_incs include/pcl/${SUBSYS_NAME}/impl/extract_clusters.hpp
include/pcl/${SUBSYS_NAME}/impl/extract_labeled_clusters.hpp
include/pcl/${SUBSYS_NAME}/impl/extract_polygonal_prism_data.hpp
include/pcl/${SUBSYS_NAME}/impl/sac_segmentation.hpp
include/pcl/${SUBSYS_NAME}/impl/seeded_hue_segmentation.hpp
include/pcl/${SUBSYS_NAME}/impl/segment_differences.hpp
include/pcl/${SUBSYS_NAME}/impl/region_growing.hpp
)
set(LIB_NAME pcl_${SUBSYS_NAME})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
PCL_ADD_LIBRARY(${LIB_NAME} ${SUBSYS_NAME} ${srcs} ${incs} ${impl_incs})
target_link_libraries(${LIB_NAME} pcl_search pcl_sample_consensus)
PCL_MAKE_PKGCONFIG(${LIB_NAME} ${SUBSYS_NAME} "${SUBSYS_DESC}"
"${SUBSYS_DEPS}" "" "" "" "")
# Install include files
PCL_ADD_INCLUDES(${SUBSYS_NAME} ${SUBSYS_NAME} ${incs})
PCL_ADD_INCLUDES(${SUBSYS_NAME} ${SUBSYS_NAME}/impl ${impl_incs})
endif(build)