-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
48 lines (37 loc) · 1019 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
38
39
40
41
42
43
44
45
46
47
cmake_minimum_required(VERSION 3.9)
project(MCVSLAM VERSION 0.0.1)
set(PROJECT_VERSION 3.9)
set(CMAKE_CXX_STANDARD 11)
add_compile_options(-fPIC)
set(CMAKE_CXX_FLAGS "-Wno-deprecated-declarations")
include(cmake/FindG2O.cmake)
include (cmake/ROSConfig.cmake)
include(cmake/FindOpenCV.cmake)
include (cmake/ThirdPartyConfig.cmake)
set(pyp_DIR "$ENV{HOME}/.local/lib/cmake/pyp")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/app)
find_package(pyp REQUIRED)
link_libraries(pyp::fmt pyp::timer pyp::yaml pyp::cmdline)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 ")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 ")
add_subdirectory(modules)
file(GLOB src_file "./src/*.c*")
add_library(MCVSLAM ${src_file})
target_include_directories(MCVSLAM PUBLIC
./include
${OpenCV_INCLUDE_DIRS}
${ROS_INCLUDE_DIRS}
)
target_link_libraries( MCVSLAM
${OpenCV_LIBS}
thread_pool
# ros_msg
capture
ORB
SURF
camera
Dbow3
osg_viewer
${G2O_LIBS}
)
add_subdirectory(test)