-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
52 lines (43 loc) · 940 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
48
49
50
51
52
cmake_minimum_required(VERSION 3.10)
project(oh_my_vslam)
set(CMAKE_CXX_FLAGS "-std=c++17 -Wall")
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
find_package(g3log REQUIRED SYSTEM)
find_package(yaml-cpp REQUIRED)
find_package(PCL QUIET)
find_package(GTest REQUIRED)
find_package(Ceres REQUIRED)
find_package(OpenCV REQUIRED)
set(THIRD_PARTY_LIBS
${YAML_CPP_LIBRARIES}
${OpenCV_LIBS}
${GTEST_BOTH_LIBRARIES}
${G3LOG_LIBRARIES}
${PCL_LIBRARIES}
${CERES_LIBRARIES}
)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
rosbag
sensor_msgs
)
catkin_package(
CATKIN_DEPENDS roscpp rospy std_msgs
)
include_directories(SYSTEM
${catkin_INCLUDE_DIRS}
)
include_directories(SYSTEM
${G3LOG_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${GTEST_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
)
add_subdirectory(common)
add_subdirectory(oh_my_vslam)