forked from PointCloudLibrary/pcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
173 lines (155 loc) · 8.08 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
set(SUBSYS_NAME recognition)
set(SUBSYS_DESC "Point cloud recognition library")
set(SUBSYS_DEPS common io search kdtree octree features filters registration sample_consensus 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(LINEMOD_INCLUDES
"include/pcl/${SUBSYS_NAME}/linemod/line_rgbd.h"
)
set(LINEMOD_IMPLS
"include/pcl/${SUBSYS_NAME}/impl/linemod/line_rgbd.hpp"
)
set(incs
"include/pcl/${SUBSYS_NAME}/boost.h"
"include/pcl/${SUBSYS_NAME}/color_gradient_dot_modality.h"
"include/pcl/${SUBSYS_NAME}/color_gradient_modality.h"
"include/pcl/${SUBSYS_NAME}/color_modality.h"
"include/pcl/${SUBSYS_NAME}/crh_alignment.h"
"include/pcl/${SUBSYS_NAME}/linemod.h"
"include/pcl/${SUBSYS_NAME}/dotmod.h"
"include/pcl/${SUBSYS_NAME}/quantizable_modality.h"
"include/pcl/${SUBSYS_NAME}/quantized_map.h"
"include/pcl/${SUBSYS_NAME}/dot_modality.h"
"include/pcl/${SUBSYS_NAME}/region_xy.h"
"include/pcl/${SUBSYS_NAME}/mask_map.h"
"include/pcl/${SUBSYS_NAME}/point_types.h"
"include/pcl/${SUBSYS_NAME}/distance_map.h"
"include/pcl/${SUBSYS_NAME}/dense_quantized_multi_mod_template.h"
"include/pcl/${SUBSYS_NAME}/sparse_quantized_multi_mod_template.h"
"include/pcl/${SUBSYS_NAME}/surface_normal_modality.h"
"include/pcl/${SUBSYS_NAME}/linemod/line_rgbd.h"
"include/pcl/${SUBSYS_NAME}/implicit_shape_model.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/auxiliary.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/hypothesis.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/model_library.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/rigid_transform_space.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/obj_rec_ransac.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/orr_graph.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/orr_octree_zprojection.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/trimmed_icp.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/orr_octree.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/simple_octree.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/voxel_structure.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/bvh.h"
)
set(ransac_based_incs
"include/pcl/${SUBSYS_NAME}/ransac_based/auxiliary.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/hypothesis.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/model_library.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/rigid_transform_space.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/obj_rec_ransac.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/orr_graph.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/orr_octree_zprojection.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/trimmed_icp.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/orr_octree.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/simple_octree.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/voxel_structure.h"
"include/pcl/${SUBSYS_NAME}/ransac_based/bvh.h"
)
set(hv_incs
"include/pcl/${SUBSYS_NAME}/hv/occlusion_reasoning.h"
"include/pcl/${SUBSYS_NAME}/hv/hypotheses_verification.h"
"include/pcl/${SUBSYS_NAME}/hv/hv_papazov.h"
"include/pcl/${SUBSYS_NAME}/hv/hv_go.h"
"include/pcl/${SUBSYS_NAME}/hv/greedy_verification.h"
)
set(face_detection_incs
"include/pcl/${SUBSYS_NAME}/face_detection/face_common.h"
"include/pcl/${SUBSYS_NAME}/face_detection/face_detector_data_provider.h"
"include/pcl/${SUBSYS_NAME}/face_detection/rf_face_detector_trainer.h"
"include/pcl/${SUBSYS_NAME}/face_detection/rf_face_utils.h"
)
set(cg_incs
"include/pcl/${SUBSYS_NAME}/cg/correspondence_grouping.h"
"include/pcl/${SUBSYS_NAME}/cg/hough_3d.h"
"include/pcl/${SUBSYS_NAME}/cg/geometric_consistency.h"
)
set(impl_incs
"include/pcl/${SUBSYS_NAME}/impl/linemod/line_rgbd.hpp"
"include/pcl/${SUBSYS_NAME}/impl/ransac_based/simple_octree.hpp"
"include/pcl/${SUBSYS_NAME}/impl/ransac_based/voxel_structure.hpp"
"include/pcl/${SUBSYS_NAME}/impl/implicit_shape_model.hpp"
)
set(ransac_based_impl_incs
"include/pcl/${SUBSYS_NAME}/impl/ransac_based/simple_octree.hpp"
"include/pcl/${SUBSYS_NAME}/impl/ransac_based/voxel_structure.hpp"
)
set(hv_impl_incs
"include/pcl/${SUBSYS_NAME}/impl/hv/occlusion_reasoning.hpp"
"include/pcl/${SUBSYS_NAME}/impl/hv/hv_papazov.hpp"
"include/pcl/${SUBSYS_NAME}/impl/hv/greedy_verification.hpp"
"include/pcl/${SUBSYS_NAME}/impl/hv/hv_go.hpp"
)
set(cg_impl_incs
"include/pcl/${SUBSYS_NAME}/impl/cg/correspondence_grouping.hpp"
"include/pcl/${SUBSYS_NAME}/impl/cg/hough_3d.hpp"
"include/pcl/${SUBSYS_NAME}/impl/cg/geometric_consistency.hpp"
)
set(srcs
src/linemod.cpp
src/quantizable_modality.cpp
src/dotmod.cpp
src/mask_map.cpp
src/hv/occlusion_reasoning.cpp
src/hv/hv_papazov.cpp
src/hv/hv_go.cpp
src/hv/greedy_verification.cpp
src/cg/hough_3d.cpp
src/cg/geometric_consistency.cpp
src/ransac_based/obj_rec_ransac.cpp
src/ransac_based/model_library.cpp
src/ransac_based/orr_octree.cpp
src/ransac_based/orr_octree_zprojection.cpp
src/face_detection/face_detector_data_provider.cpp
src/face_detection/rf_face_detector_trainer.cpp
src/implicit_shape_model.cpp
)
if (HAVE_METSLIB)
set(metslib_incs "")
else(HAVE_METSLIB)
set(metslib_incs
"include/pcl/${SUBSYS_NAME}/3rdparty/metslib/abstract-search.hh"
"include/pcl/${SUBSYS_NAME}/3rdparty/metslib/local-search.hh"
"include/pcl/${SUBSYS_NAME}/3rdparty/metslib/mets.hh"
"include/pcl/${SUBSYS_NAME}/3rdparty/metslib/metslib_config.hh"
"include/pcl/${SUBSYS_NAME}/3rdparty/metslib/model.hh"
"include/pcl/${SUBSYS_NAME}/3rdparty/metslib/observer.hh"
"include/pcl/${SUBSYS_NAME}/3rdparty/metslib/simulated-annealing.hh"
"include/pcl/${SUBSYS_NAME}/3rdparty/metslib/tabu-search.hh"
"include/pcl/${SUBSYS_NAME}/3rdparty/metslib/termination-criteria.hh"
)
endif(HAVE_METSLIB)
set(LIB_NAME "pcl_${SUBSYS_NAME}")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")
PCL_ADD_LIBRARY("${LIB_NAME}" "${SUBSYS_NAME}" ${srcs} ${incs} ${impl_incs} ${face_detection_incs} ${ransac_based_incs} ${ransac_based_impl_incs} ${hv_incs} ${hv_impl_incs} ${cg_incs} ${cg_impl_incs} ${metslib_incs})
target_link_libraries("${LIB_NAME}" pcl_common pcl_kdtree pcl_octree pcl_search pcl_features pcl_registration pcl_sample_consensus pcl_filters pcl_ml pcl_io)
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}/ransac_based" ${ransac_based_incs})
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}/hv" ${hv_incs})
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}/cg" ${cg_incs})
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}/face_detection" ${face_detection_incs})
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}/impl" ${impl_incs})
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}/impl/ransac_based" ${ransac_based_impl_incs})
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}/impl/hv" ${hv_impl_incs})
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}/impl/cg" ${cg_impl_incs})
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}/linemod" ${LINEMOD_INCLUDES})
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}/impl/linemod" ${LINEMOD_IMPLS})
if (NOT HAVE_METSLIB)
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}/3rdparty/metslib" ${metslib_incs})
endif(NOT HAVE_METSLIB)
endif(build)