forked from PointCloudLibrary/pcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
135 lines (126 loc) · 6.36 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
set(SUBSYS_NAME segmentation)
set(SUBSYS_DESC "Point cloud segmentation library")
set(SUBSYS_DEPS common geometry search sample_consensus kdtree octree features filters ml)
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
src/region_growing_rgb.cpp
src/organized_connected_component_segmentation.cpp
src/organized_multi_plane_segmentation.cpp
src/planar_polygon_fusion.cpp
src/crf_segmentation.cpp
src/crf_normal_segmentation.cpp
src/unary_classifier.cpp
src/conditional_euclidean_clustering.cpp
src/supervoxel_clustering.cpp
src/grabcut_segmentation.cpp
src/progressive_morphological_filter.cpp
src/approximate_progressive_morphological_filter.cpp
src/lccp_segmentation.cpp
src/cpc_segmentation.cpp
)
# NOTE: boost/graph/boykov_kolmogorov_max_flow.hpp only exists for versions > 1.43
if(Boost_MAJOR_VERSION GREATER 1 OR Boost_MINOR_VERSION GREATER 43)
list(APPEND srcs
src/min_cut_segmentation.cpp
)
endif()
set(incs
"include/pcl/${SUBSYS_NAME}/boost.h"
"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"
"include/pcl/${SUBSYS_NAME}/region_growing_rgb.h"
"include/pcl/${SUBSYS_NAME}/comparator.h"
"include/pcl/${SUBSYS_NAME}/plane_coefficient_comparator.h"
"include/pcl/${SUBSYS_NAME}/euclidean_plane_coefficient_comparator.h"
"include/pcl/${SUBSYS_NAME}/edge_aware_plane_comparator.h"
"include/pcl/${SUBSYS_NAME}/rgb_plane_coefficient_comparator.h"
"include/pcl/${SUBSYS_NAME}/plane_refinement_comparator.h"
"include/pcl/${SUBSYS_NAME}/euclidean_cluster_comparator.h"
"include/pcl/${SUBSYS_NAME}/ground_plane_comparator.h"
"include/pcl/${SUBSYS_NAME}/organized_connected_component_segmentation.h"
"include/pcl/${SUBSYS_NAME}/organized_multi_plane_segmentation.h"
"include/pcl/${SUBSYS_NAME}/region_3d.h"
"include/pcl/${SUBSYS_NAME}/planar_region.h"
"include/pcl/${SUBSYS_NAME}/planar_polygon_fusion.h"
"include/pcl/${SUBSYS_NAME}/crf_segmentation.h"
"include/pcl/${SUBSYS_NAME}/crf_normal_segmentation.h"
"include/pcl/${SUBSYS_NAME}/unary_classifier.h"
"include/pcl/${SUBSYS_NAME}/conditional_euclidean_clustering.h"
"include/pcl/${SUBSYS_NAME}/supervoxel_clustering.h"
"include/pcl/${SUBSYS_NAME}/grabcut_segmentation.h"
"include/pcl/${SUBSYS_NAME}/progressive_morphological_filter.h"
"include/pcl/${SUBSYS_NAME}/approximate_progressive_morphological_filter.h"
"include/pcl/${SUBSYS_NAME}/lccp_segmentation.h"
"include/pcl/${SUBSYS_NAME}/cpc_segmentation.h"
)
# NOTE: boost/graph/boykov_kolmogorov_max_flow.hpp only exists for versions > 1.43
if(Boost_MAJOR_VERSION GREATER 1 OR Boost_MINOR_VERSION GREATER 43)
list(APPEND incs
"include/pcl/${SUBSYS_NAME}/min_cut_segmentation.h"
)
endif()
# Random walker requires Eigen::Sparse module that is available since 3.1.0
if(NOT ("${EIGEN_VERSION}" VERSION_LESS 3.1.0))
list(APPEND incs
"include/pcl/${SUBSYS_NAME}/random_walker.h"
)
endif()
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"
"include/pcl/${SUBSYS_NAME}/impl/region_growing_rgb.hpp"
"include/pcl/${SUBSYS_NAME}/impl/organized_connected_component_segmentation.hpp"
"include/pcl/${SUBSYS_NAME}/impl/organized_multi_plane_segmentation.hpp"
"include/pcl/${SUBSYS_NAME}/impl/planar_polygon_fusion.hpp"
"include/pcl/${SUBSYS_NAME}/impl/crf_segmentation.hpp"
"include/pcl/${SUBSYS_NAME}/impl/unary_classifier.hpp"
"include/pcl/${SUBSYS_NAME}/impl/crf_normal_segmentation.hpp"
"include/pcl/${SUBSYS_NAME}/impl/conditional_euclidean_clustering.hpp"
"include/pcl/${SUBSYS_NAME}/impl/supervoxel_clustering.hpp"
"include/pcl/${SUBSYS_NAME}/impl/grabcut_segmentation.hpp"
"include/pcl/${SUBSYS_NAME}/impl/progressive_morphological_filter.hpp"
"include/pcl/${SUBSYS_NAME}/impl/approximate_progressive_morphological_filter.hpp"
"include/pcl/${SUBSYS_NAME}/impl/lccp_segmentation.hpp"
"include/pcl/${SUBSYS_NAME}/impl/cpc_segmentation.hpp"
)
# NOTE: boost/graph/boykov_kolmogorov_max_flow.hpp only exists for versions > 1.43
if(Boost_MAJOR_VERSION GREATER 1 OR Boost_MINOR_VERSION GREATER 43)
list(APPEND impl_incs
"include/pcl/${SUBSYS_NAME}/impl/min_cut_segmentation.hpp"
)
endif()
# Random walker requires Eigen::Sparse module that is available since 3.1.0
if(NOT ("${EIGEN_VERSION}" VERSION_LESS 3.1.0))
list(APPEND impl_incs
"include/pcl/${SUBSYS_NAME}/impl/random_walker.hpp"
)
endif()
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_filters pcl_ml pcl_features)
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)