-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
36 lines (30 loc) · 949 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
cmake_minimum_required(VERSION 3.5)
project(vSLAMLearning_v1)
set(CMAKE_CXX_FLAGS "-std=c++11")
set(CMAKE_CXX_COMPILER "g++")
set( CMAKE_BUILD_TYPE "debug" )
list( APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules )
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#Eigen
include_directories("/usr/include/eigen3")
#OpenCV
find_package(OpenCV 3.4 REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
#Sophus
find_package(Sophus REQUIRED)
include_directories(${Sophus_INCLUDE_DIRS})
#G2O
find_package(G2O REQUIRED)
include_directories(${G2O_INCLUDE_DIRS})
set(
THIRD_PARTY_LIBS
${OpenCV_LIBS}
${Sophus_LIBRARIES}
g2o_core g2o_stuff g2o_types_sba
)
################## source and test#####################
include_directories( ${PROJECT_SOURCE_DIR}/include )
add_subdirectory( src )
add_executable(run_vo_4 ./test/main.cc)
target_link_libraries(run_vo_4 myslam)