-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
80 lines (69 loc) · 2.24 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
76
77
78
79
80
##############################################################################
# CMake
##############################################################################
cmake_minimum_required(VERSION 3.5)
project(py_trees_ros_interfaces)
# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
##############################################################################
# Dependencies
##############################################################################
find_package(ament_cmake REQUIRED)
find_package(builtin_interfaces REQUIRED)
find_package(rosidl_default_generators REQUIRED)
find_package(action_msgs REQUIRED)
find_package(diagnostic_msgs REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(unique_identifier_msgs REQUIRED)
##############################################################################
# Messages
##############################################################################
set(action_files
"action/Dock.action"
"action/Rotate.action"
"action/MoveBase.action"
)
set(msg_files
"msg/ActivityItem.msg"
"msg/Behaviour.msg"
"msg/BehaviourTree.msg"
"msg/KeyValue.msg"
"msg/PublisherDetails.msg"
"msg/Statistics.msg"
"msg/ServiceDetails.msg"
"msg/SnapshotStreamParameters.msg"
"msg/SubscriberDetails.msg"
)
set(srv_files
"srv/CloseBlackboardStream.srv"
"srv/CloseSnapshotStream.srv"
"srv/GetBlackboardVariables.srv"
"srv/IntrospectPublishers.srv"
"srv/IntrospectServices.srv"
"srv/IntrospectSubscribers.srv"
"srv/OpenBlackboardStream.srv"
"srv/OpenSnapshotStream.srv"
"srv/ReconfigureSnapshotStream.srv"
"srv/StatusReport.srv"
)
rosidl_generate_interfaces(${PROJECT_NAME}
${srv_files}
${msg_files}
${action_files}
DEPENDENCIES
action_msgs # even though not directly using, it requires some trace back
diagnostic_msgs
geometry_msgs
unique_identifier_msgs
# ADD_LINTER_TESTS # very expensive
)
##############################################################################
# Package
##############################################################################
ament_export_dependencies(rosidl_default_runtime)
ament_package()