Skip to content

Commit 103cd84

Browse files
committed
add a simple test to omnimapper
1 parent 7cbee0c commit 103cd84

File tree

3 files changed

+470
-4
lines changed

3 files changed

+470
-4
lines changed

CMakeLists.txt

+30-4
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,19 @@ endif()
1212

1313
# find dependencies
1414
find_package(ament_cmake REQUIRED)
15-
find_package(Boost REQUIRED)
15+
find_package(Boost REQUIRED COMPONENTS timer)
1616
find_package(eigen3_cmake_module REQUIRED)
1717
find_package(Eigen3 REQUIRED)
1818
find_package(GTSAM REQUIRED)
19-
find_package(PCL REQUIRED)
19+
find_package(PCL 1.8 REQUIRED)
2020

2121
include_directories(
2222
include
23+
)
24+
25+
include_directories(
26+
${Boost_INCLUDE_DIRS}
27+
${GTSAM_INCLUDE_DIR}
2328
${PCL_COMMON_INCLUDE_DIRS}
2429
${OPENNI_INCLUDE_DIRS}
2530
)
@@ -46,6 +51,10 @@ set (organized_segmentation_srcs
4651
src/organized_segmentation/organized_segmentation_tbb.cpp
4752
)
4853

54+
set(dependencies
55+
Eigen3
56+
)
57+
4958
set(library_name ${PROJECT_NAME})
5059
add_library(${library_name} SHARED
5160
${library_srcs}
@@ -56,12 +65,13 @@ add_library(${library_name} SHARED
5665
target_link_libraries(${library_name}
5766
${PCL_LIBRARIES}
5867
${OPENNI_LIBRARIES}
59-
${GTSAM_LIBRARIES}
68+
gtsam
69+
${Boost_LIBRARIES}
6070
${TBB_LIBRARIES}
6171
)
6272

6373
ament_target_dependencies(${library_name}
64-
Eigen3
74+
${dependencies}
6575
)
6676

6777
target_include_directories(${library_name}
@@ -70,7 +80,23 @@ target_include_directories(${library_name}
7080
${GTSAM_INCLUDE_DIR}
7181
)
7282

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+
7398
install(TARGETS ${library_name}
99+
omnimapper_test
74100
ARCHIVE DESTINATION lib
75101
LIBRARY DESTINATION lib
76102
RUNTIME DESTINATION lib/${PROJECT_NAME}

0 commit comments

Comments
 (0)