-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·85 lines (68 loc) · 2.12 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
cmake_minimum_required(VERSION 2.8.3)
project(dsvo)
set( CMAKE_BUILD_TYPE Release )
set( CMAKE_CXX_FLAGS "-std=c++11" )
find_package(catkin REQUIRED COMPONENTS
cv_bridge
image_transport
message_filters
dynamic_reconfigure
roscpp
pcl_ros
)
generate_dynamic_reconfigure_options(
cfg/dsvo.cfg
)
LIST( APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules )
find_package( OpenCV REQUIRED )
find_package( Eigen3 REQUIRED )
find_package( G2O REQUIRED )
find_package( Cholmod REQUIRED)
find_package( CSparse REQUIRED )
INCLUDE_DIRECTORIES( ${G2O_INCLUDE_DIR} ${CSPARSE_INCLUDE_DIR} ${EIGEN3_INCLUDE_DIR} ${CHOLMOD_INCLUDE_DIR} )
catkin_package()
include_directories(SYSTEM ${OpenCV_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS} include test/include)
add_executable(stereo_rectifier_node
src/stereo_rectifier/stereo_rectifier_node.cpp
src/stereo_rectifier/stereo_rectifier.cpp
)
target_link_libraries(stereo_rectifier_node
${catkin_LIBRARIES}
${OpenCV_LIBS}
)
add_executable(stereo_processor_node
src/stereo_processor/g2o_edges/scale_edge.cpp
src/stereo_processor/g2o_edges/pose_edge.cpp
src/state.cpp
src/stereo_processor/stereo_processor.cpp
src/stereo_processor/stereo_processor_helpers.cpp
src/stereo_processor/stereo_processor_node.cpp
src/stereo_processor/reconstructor.cpp
src/stereo_processor/scale_optimizer.cpp
src/stereo_processor/pose_estimater.cpp)
add_dependencies(stereo_processor_node ${PROJECT_NAME}_gencfg)
target_link_libraries(stereo_processor_node
${catkin_LIBRARIES}
${OpenCV_LIBS}
${CSPARSE_LIBRARY}
g2o_core g2o_types_slam3d g2o_solver_csparse csparse g2o_stuff g2o_csparse_extension g2o_types_sba cholmod
)
add_executable(comparer_node
test/src/comparer_node.cpp
test/src/odom_comparer.cpp
test/src/point_comparer.cpp
test/src/trans_comparer.cpp
test/src/comparer.cpp)
target_link_libraries(comparer_node
${catkin_LIBRARIES}
)
add_executable(stereo_split tools/stereo_split.cpp)
target_link_libraries(stereo_split
${catkin_LIBRARIES}
${OpenCV_LIBS}
)
add_executable(kitti_pub tools/kitti_pub.cpp)
target_link_libraries(kitti_pub
${catkin_LIBRARIES}
${OpenCV_LIBS}
)