-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
56 lines (43 loc) · 1.34 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
cmake_minimum_required(VERSION 3.10)
project(hemisphere_v500)
# Default to C++17
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 17)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)
find_package(rosidl_default_generators REQUIRED)
if(NOT TARGET munu_io)
find_package(munu_io REQUIRED)
endif()
rosidl_generate_interfaces(${PROJECT_NAME}
"msg/StampedString.msg"
"msg/Binary1.msg"
"msg/Binary2.msg"
"msg/Binary3.msg"
DEPENDENCIES std_msgs
)
include_directories(include ${Boost_INCLUDE_DIRS})
add_executable(hemisphere_v500_node src/hemisphere_v500_node.cpp)
target_compile_features(hemisphere_v500_node PUBLIC cxx_std_17)
ament_target_dependencies(hemisphere_v500_node rclcpp std_msgs munu_io)
target_include_directories(hemisphere_v500_node PUBLIC
include ${Boost_INCLUDE_DIRS}
)
target_include_directories(hemisphere_v500_node PRIVATE src)
ament_target_dependencies(hemisphere_v500_node
rclcpp
std_msgs
)
target_link_libraries(hemisphere_v500_node
munu_io
)
rosidl_target_interfaces(hemisphere_v500_node ${PROJECT_NAME} "rosidl_typesupport_cpp")
install(TARGETS
hemisphere_v500_node
DESTINATION lib/${PROJECT_NAME})
ament_package()