@@ -12,14 +12,19 @@ endif()
12
12
13
13
# find dependencies
14
14
find_package (ament_cmake REQUIRED)
15
- find_package (Boost REQUIRED)
15
+ find_package (Boost REQUIRED COMPONENTS timer )
16
16
find_package (eigen3_cmake_module REQUIRED)
17
17
find_package (Eigen3 REQUIRED)
18
18
find_package (GTSAM REQUIRED)
19
- find_package (PCL REQUIRED)
19
+ find_package (PCL 1.8 REQUIRED)
20
20
21
21
include_directories (
22
22
include
23
+ )
24
+
25
+ include_directories (
26
+ ${Boost_INCLUDE_DIRS}
27
+ ${GTSAM_INCLUDE_DIR}
23
28
${PCL_COMMON_INCLUDE_DIRS}
24
29
${OPENNI_INCLUDE_DIRS}
25
30
)
@@ -46,6 +51,10 @@ set (organized_segmentation_srcs
46
51
src/organized_segmentation/organized_segmentation_tbb.cpp
47
52
)
48
53
54
+ set (dependencies
55
+ Eigen3
56
+ )
57
+
49
58
set (library_name ${PROJECT_NAME} )
50
59
add_library (${library_name} SHARED
51
60
${library_srcs}
@@ -56,12 +65,13 @@ add_library(${library_name} SHARED
56
65
target_link_libraries (${library_name}
57
66
${PCL_LIBRARIES}
58
67
${OPENNI_LIBRARIES}
59
- ${GTSAM_LIBRARIES}
68
+ gtsam
69
+ ${Boost_LIBRARIES}
60
70
${TBB_LIBRARIES}
61
71
)
62
72
63
73
ament_target_dependencies(${library_name}
64
- Eigen3
74
+ ${dependencies}
65
75
)
66
76
67
77
target_include_directories (${library_name}
@@ -70,7 +80,23 @@ target_include_directories(${library_name}
70
80
${GTSAM_INCLUDE_DIR}
71
81
)
72
82
83
+ add_executable (omnimapper_test src/omnimapper_test.cpp)
84
+
85
+ ament_target_dependencies(omnimapper_test
86
+ ${dependencies}
87
+ )
88
+
89
+ target_link_libraries (omnimapper_test
90
+ ${library_name}
91
+ ${PCL_LIBRARIES}
92
+ ${Boost_LIBRARIES}
93
+ ${OPENNI_LIBRARIES}
94
+ gtsam
95
+ ${TBB_LIBRARIES}
96
+ )
97
+
73
98
install (TARGETS ${library_name}
99
+ omnimapper_test
74
100
ARCHIVE DESTINATION lib
75
101
LIBRARY DESTINATION lib
76
102
RUNTIME DESTINATION lib/${PROJECT_NAME}
0 commit comments