forked from freeclouds/remove_ros_VINS-position-constraint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
65 lines (61 loc) · 2.26 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
cmake_minimum_required(VERSION 3.12)
project(VINS)
#set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_STANDARD 14)
include_directories(${CMAKE_SOURCE_DIR}/camera_model/include)
include_directories(${CMAKE_SOURCE_DIR}/msgg)
include_directories(
/usr/local/include/
/usr/local/include/opencv
)
set(OPENCV_LIB_DIR "/usr/local/lib")
find_package(OpenCV REQUIRED)
find_package(Ceres REQUIRED)
include_directories(${CERES_INCLUDE_DIRS})
include_directories(
/usr/include/eigen3
)
find_package(Boost REQUIRED COMPONENTS filesystem program_options system)
include_directories(${Boost_INCLUDE_DIRS})
add_executable(VINS main.cpp
factor/imu_factor.h
factor/gps_factor.h
factor/integration_base.h
factor/marginalization_factor.h
factor/pose_local_parameterization.cpp
factor/marginalization_factor.cpp
factor/pose_local_parameterization.h
factor/projection_factor.h
factor/projection_factor.cpp
factor/projection_td_factor.h
factor/projection_td_factor.cpp
initial/initial_alignment.h
initial/initial_aligment.cpp
initial/initial_ex_rotation.h
initial/initial_ex_rotation.cpp
initial/initial_sfm.h
initial/initial_sfm.cpp
initial/solve_5pts.h
initial/solve_5pts.cpp
utility/tic_toc.h
utility/utility.h
utility/utility.cpp
feature_manager.cpp
feature_manager.h
feature_tracker.h
feature_tracker.cpp parameters.cpp parameters.h estimator.h estimator.cpp
camera_model/srcc/chessboard/Chessboard.cc
camera_model/srcc/calib/CameraCalibration.cc
camera_model/srcc/camera_models/Camera.cc
camera_model/srcc/camera_models/CameraFactory.cc
camera_model/srcc/camera_models/CostFunctionFactory.cc
camera_model/srcc/camera_models/PinholeCamera.cc
camera_model/srcc/camera_models/CataCamera.cc
camera_model/srcc/camera_models/EquidistantCamera.cc
camera_model/srcc/camera_models/ScaramuzzaCamera.cc
camera_model/srcc/sparse_graph/Transform.cc
camera_model/srcc/gpl/gpl.cc
camera_model/srcc/gpl/EigenQuaternionParameterization.cc )
target_link_libraries(VINS
${OpenCV_LIBS}
${CERES_LIBRARIES})