-
Notifications
You must be signed in to change notification settings - Fork 52
/
CMakeLists.txt
82 lines (68 loc) · 2.47 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
cmake_minimum_required(VERSION 2.8.3)
project(dynaVINS)
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++11")
#-DEIGEN_USE_MKL_ALL")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
geometry_msgs
nav_msgs
tf
cv_bridge
camera_models
image_transport
pcl_conversions
pcl_ros
roslib)
find_package(OpenCV REQUIRED)
# message(WARNING "OpenCV_VERSION: ${OpenCV_VERSION}")
find_package(PCL REQUIRED)
find_package(Ceres REQUIRED)
include_directories(${catkin_INCLUDE_DIRS} ${CERES_INCLUDE_DIRS})
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
find_package(Eigen3)
include_directories(
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
${PCL_INCLUDE_DIRS}
)
catkin_package()
add_executable(vins_node
vins_estimator/rosNodeTest.cpp
vins_estimator/estimator/parameters.cpp
vins_estimator/estimator/estimator.cpp
vins_estimator/estimator/feature_manager.cpp
vins_estimator/factor/pose_local_parameterization.cpp
vins_estimator/factor/projectionTwoFrameOneCamFactor.cpp
vins_estimator/factor/projectionTwoFrameTwoCamFactor.cpp
vins_estimator/factor/projectionOneFrameTwoCamFactor.cpp
vins_estimator/factor/marginalization_factor.cpp
vins_estimator/utility/utility.cpp
vins_estimator/utility/visualization.cpp
vins_estimator/utility/CameraPoseVisualization.cpp
vins_estimator/initial/solve_5pts.cpp
vins_estimator/initial/initial_aligment.cpp
vins_estimator/initial/initial_sfm.cpp
vins_estimator/initial/initial_ex_rotation.cpp
vins_estimator/featureTracker/feature_tracker.cpp)
target_link_libraries(vins_node ${catkin_LIBRARIES} ${OpenCV_LIBS} ${CERES_LIBRARIES})
add_executable(loop_fusion_node
loop_fusion/pose_graph_node.cpp
loop_fusion/pose_graph.cpp
loop_fusion/keyframe.cpp
loop_fusion/utility/CameraPoseVisualization.cpp
loop_fusion/ThirdParty/DBoW/BowVector.cpp
loop_fusion/ThirdParty/DBoW/FBrief.cpp
loop_fusion/ThirdParty/DBoW/FORB.cpp
loop_fusion/ThirdParty/DBoW/FeatureVector.cpp
loop_fusion/ThirdParty/DBoW/QueryResults.cpp
loop_fusion/ThirdParty/DBoW/ScoringObject.cpp
loop_fusion/ThirdParty/DUtils/Random.cpp
loop_fusion/ThirdParty/DUtils/Timestamp.cpp
loop_fusion/ThirdParty/DVision/BRIEF.cpp
loop_fusion/ThirdParty/VocabularyBinary.cpp
loop_fusion/factor/ceresBA.hpp
)
target_link_libraries(loop_fusion_node ${catkin_LIBRARIES} ${OpenCV_LIBS} ${CERES_LIBRARIES})