-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
Copy pathCMakeLists.txt
66 lines (58 loc) · 2.22 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
set(SUBSYS_NAME keypoints)
set(SUBSYS_DESC "Point cloud keypoints library")
set(SUBSYS_DEPS common search kdtree octree features filters)
PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON)
PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} OPT_DEPS OpenMP)
PCL_ADD_DOC("${SUBSYS_NAME}")
if(NOT build)
return()
endif()
set(srcs
src/narf_keypoint.cpp
src/sift_keypoint.cpp
src/smoothed_surfaces_keypoint.cpp
src/harris_3d.cpp
src/harris_6d.cpp
src/agast_2d.cpp
src/susan.cpp
src/iss_3d.cpp
src/brisk_2d.cpp
src/trajkovic_2d.cpp
src/trajkovic_3d.cpp
)
set(incs
"include/pcl/${SUBSYS_NAME}/keypoint.h"
"include/pcl/${SUBSYS_NAME}/narf_keypoint.h"
"include/pcl/${SUBSYS_NAME}/sift_keypoint.h"
"include/pcl/${SUBSYS_NAME}/smoothed_surfaces_keypoint.h"
"include/pcl/${SUBSYS_NAME}/agast_2d.h"
"include/pcl/${SUBSYS_NAME}/harris_2d.h"
"include/pcl/${SUBSYS_NAME}/harris_3d.h"
"include/pcl/${SUBSYS_NAME}/harris_6d.h"
"include/pcl/${SUBSYS_NAME}/susan.h"
"include/pcl/${SUBSYS_NAME}/iss_3d.h"
"include/pcl/${SUBSYS_NAME}/brisk_2d.h"
"include/pcl/${SUBSYS_NAME}/trajkovic_2d.h"
"include/pcl/${SUBSYS_NAME}/trajkovic_3d.h"
)
set(impl_incs
"include/pcl/${SUBSYS_NAME}/impl/keypoint.hpp"
"include/pcl/${SUBSYS_NAME}/impl/sift_keypoint.hpp"
"include/pcl/${SUBSYS_NAME}/impl/smoothed_surfaces_keypoint.hpp"
"include/pcl/${SUBSYS_NAME}/impl/agast_2d.hpp"
"include/pcl/${SUBSYS_NAME}/impl/harris_2d.hpp"
"include/pcl/${SUBSYS_NAME}/impl/harris_3d.hpp"
"include/pcl/${SUBSYS_NAME}/impl/harris_6d.hpp"
"include/pcl/${SUBSYS_NAME}/impl/susan.hpp"
"include/pcl/${SUBSYS_NAME}/impl/iss_3d.hpp"
"include/pcl/${SUBSYS_NAME}/impl/brisk_2d.hpp"
"include/pcl/${SUBSYS_NAME}/impl/trajkovic_2d.hpp"
"include/pcl/${SUBSYS_NAME}/impl/trajkovic_3d.hpp"
)
set(LIB_NAME "pcl_${SUBSYS_NAME}")
PCL_ADD_LIBRARY(${LIB_NAME} COMPONENT ${SUBSYS_NAME} SOURCES ${srcs} ${incs} ${impl_incs})
target_link_libraries("${LIB_NAME}" pcl_features pcl_filters)
PCL_MAKE_PKGCONFIG(${LIB_NAME} COMPONENT ${SUBSYS_NAME} DESC ${SUBSYS_DESC} PCL_DEPS ${SUBSYS_DEPS})
# Install include files
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}" ${incs})
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}/impl" ${impl_incs})