forked from PointCloudLibrary/pcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
41 lines (34 loc) · 1.5 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
set(SUBSYS_NAME segmentation)
set(SUBSYS_DESC "Point cloud segmentation library")
set(SUBSYS_DEPS common features io kdtree sample_consensus)
set(build TRUE)
PCL_SUBSYS_OPTION(build ${SUBSYS_NAME} ${SUBSYS_DESC} ON)
PCL_SUBSYS_DEPEND(build ${SUBSYS_NAME} ${SUBSYS_DEPS})
if(build)
set(srcs src/extract_clusters.cpp
src/extract_polygonal_prism_data.cpp
src/sac_segmentation.cpp
src/segment_differences.cpp
)
set(LIB_NAME pcl_${SUBSYS_NAME})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
PCL_ADD_LIBRARY(${LIB_NAME} ${SUBSYS_NAME} ${srcs})
PCL_ADD_SSE_FLAGS(${LIB_NAME})
target_link_libraries(${LIB_NAME} pcl_kdtree pcl_sample_consensus
${Boost_LIBRARIES})
PCL_MAKE_PKGCONFIG(${LIB_NAME} ${SUBSYS_NAME} "${SUBSYS_DESC}"
"${SUBSYS_DEPS}" "" "" "")
# Install include files
set(incs include/pcl/${SUBSYS_NAME}/extract_clusters.h
include/pcl/${SUBSYS_NAME}/extract_polygonal_prism_data.h
include/pcl/${SUBSYS_NAME}/sac_segmentation.h
include/pcl/${SUBSYS_NAME}/segment_differences.h
)
PCL_ADD_INCLUDES(${SUBSYS_NAME} ${SUBSYS_NAME} ${incs})
set(impl_incs include/pcl/${SUBSYS_NAME}/impl/extract_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/segment_differences.hpp
)
PCL_ADD_INCLUDES(${SUBSYS_NAME} ${SUBSYS_NAME}/impl ${impl_incs})
endif(build)