-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
executable file
·37 lines (32 loc) · 981 Bytes
/
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
cmake_minimum_required(VERSION 3.12)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
project(multi_calib)
find_package(OpenCV)
find_package(Eigen3 3.3 REQUIRED)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
find_package(TBB 4.4 COMPONENTS tbb tbbmalloc)
find_package(GTSAM REQUIRED)
find_package(Pangolin REQUIRED)
include_directories(
include/
${EIGEN3_INCLUDE_DIR}
)
add_library(${PROJECT_NAME} STATIC "")
add_subdirectory(src/backend)
add_subdirectory(src/camera_models)
add_subdirectory(src/data_reader)
add_subdirectory(src/frontend)
add_subdirectory(src/utils)
add_subdirectory(src/stereo)
target_link_libraries(${PROJECT_NAME}
PRIVATE
PUBLIC
${OpenCV_LIBS}
tbb
gtsam
)
add_executable(calibrate src/calibrate.cpp)
target_link_libraries(calibrate PUBLIC ${PROJECT_NAME} pango_core pango_opengl pango_display pango_plot)