forked from MapIV/ros2_bag_to_image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
54 lines (41 loc) · 1.13 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
cmake_minimum_required(VERSION 3.14)
project(ros2_bag_to_image)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()
find_package (OpenCV REQUIRED)
find_package (Boost REQUIRED)
# topic_to_image
ament_auto_add_library(topic_to_image SHARED
src/topic_to_image.cpp
)
target_link_libraries(topic_to_image ${PCL_LIBRARIES}
)
target_include_directories(topic_to_image
SYSTEM PUBLIC
${OpenCV_INCLUDE_DIRS}
)
rclcpp_components_register_node(topic_to_image
PLUGIN "TopicToImage"
EXECUTABLE topic_to_image_node
)
# topic_to_image
ament_auto_add_library(bag_to_image SHARED
src/bag_to_image.cpp
)
target_link_libraries(bag_to_image ${PCL_LIBRARIES}
)
target_include_directories(bag_to_image
SYSTEM PUBLIC
${OpenCV_INCLUDE_DIRS}
)
rclcpp_components_register_node(bag_to_image
PLUGIN "BagToImage"
EXECUTABLE bag_to_image_node
)
######
ament_auto_package(INSTALL_TO_SHARE
launch
)