-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
75 lines (63 loc) · 1.57 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
66
67
68
69
70
71
72
73
74
75
cmake_minimum_required(VERSION 3.1)
project(read_calibrated)
set(CMAKE_CXX_STANDARD 17)
set(PROJECT_CATKIN_DEPS
roscpp
nav_msgs
pcl_conversions
pcl_ros
)
find_package(catkin REQUIRED
COMPONENTS
${PROJECT_CATKIN_DEPS}
)
find_package(PCL REQUIRED)
find_package(cartographer REQUIRED)
find_package(Protobuf)
find_package(Boost COMPONENTS iostreams REQUIRED)
find_package(OpenCV REQUIRED)
find_package(yaml-cpp REQUIRED)
set(YAML_CPP_LIBS yaml-cpp)
catkin_package(
INCLUDE_DIRS
CATKIN_DEPENDS
${PROJECT_CATKIN_DEPS}
DEPENDS
OpenCV
)
add_definitions(${catkin_DEFINITIONS})
set(cartographer_INCLUDE_INTERNAL_DIRS "${PROJECT_SOURCE_DIR}/../cartographer")
include_directories(
${cartographer_INCLUDE_INTERNAL_DIRS}
${catkin_INCLUDE_DIRS}
${PROTOBUF_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${YAML_CPP_INCLUDE_DIR}
)
add_executable(${PROJECT_NAME}_node src/read_calibrated.cpp)
add_executable(${PROJECT_NAME}_filter src/filter_node.cc)
add_executable(${PROJECT_NAME}_initial src/check_initial_pose.cpp)
add_executable(${PROJECT_NAME}_convert src/convert_trajectory_to_bag.cpp)
target_link_libraries(${PROJECT_NAME}_node
${catkin_LIBRARIES}
cartographer
${PROTOBUF_LIBRARY}
${BOOST_LIBRARIES}
)
target_link_libraries(${PROJECT_NAME}_filter
${catkin_LIBRARIES}
cartographer
${PROTOBUF_LIBRARY}
${YAML_CPP_LIBS}
)
target_link_libraries(${PROJECT_NAME}_initial
${catkin_LIBRARIES}
cartographer
${PROTOBUF_LIBRARY}
${OpenCV_LIBRARIES}
)
target_link_libraries(${PROJECT_NAME}_convert
${catkin_LIBRARIES}
cartographer
${PROTOBUF_LIBRARY}
)