-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
36 lines (27 loc) · 934 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
cmake_minimum_required(VERSION 3.0.2)
project(utils_ros)
set(CMAKE_CXX_STANDARD 14)
find_package(catkin REQUIRED COMPONENTS
sensor_msgs cv_bridge roscpp rosbag message_filters
image_transport camera_info_manager)
find_package(Eigen3 REQUIRED)
find_package(OpenCV REQUIRED)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS sensor_msgs cv_bridge roscpp rosbag message_filters image_transport camera_info_manager
LIBRARIES ${PROJECT_NAME}
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
${OpenCV_INCLUDE_DIRS}
)
add_library(ros_utils
src/Utils.cpp
src/Trajectory.cpp
)
target_link_libraries(ros_utils ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
target_compile_options(ros_utils PRIVATE -march=native)
add_executable(write_kf_images src/write_keyframe_image.cpp)
target_link_libraries(write_kf_images ros_utils -lstdc++fs)