-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
64 lines (58 loc) · 1.86 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
cmake_minimum_required(VERSION 3.5)
project(scitos2_msgs)
# Default to C++17
if(NOT CMAKE_CXX_STANDARD)
if("cxx_std_17" IN_LIST CMAKE_CXX_COMPILE_FEATURES)
set(CMAKE_CXX_STANDARD 17)
else()
message(FATAL_ERROR "cxx_std_17 could not be found.")
endif()
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic -Werror -Wdeprecated -fPIC -Wshadow -Wnull-dereference)
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:-Wnon-virtual-dtor>")
endif()
# ###############################################
# # Find dependencies ##
# ###############################################
# # Find ament macros and libraries
find_package(ament_cmake REQUIRED)
find_package(builtin_interfaces REQUIRED)
find_package(std_msgs REQUIRED)
find_package(rosidl_default_generators REQUIRED)
# ###############################################
# # Declare ROS messages, services and actions ##
# ###############################################
set(msg_files
"msg/BarrierStatus.msg"
"msg/BatteryState.msg"
"msg/BumperStatus.msg"
"msg/ChargerStatus.msg"
"msg/DriveStatus.msg"
"msg/EmergencyStopStatus.msg"
"msg/MenuEntry.msg"
"msg/Mileage.msg"
"msg/RfidTag.msg"
)
set(srv_files
"srv/ChangeForce.srv"
"srv/EmergencyStop.srv"
"srv/EnableMotors.srv"
"srv/EnableRfid.srv"
"srv/ResetBarrierStop.srv"
"srv/ResetMotorStop.srv"
"srv/ResetOdometry.srv"
"srv/SaveDock.srv"
"srv/SavePersistentErrors.srv"
"srv/SuspendBumper.srv"
)
rosidl_generate_interfaces(${PROJECT_NAME}
${msg_files}
${srv_files}
DEPENDENCIES builtin_interfaces std_msgs
)
# ##################################
# # ament specific configuration ##
# ##################################
ament_export_dependencies(rosidl_default_runtime)
ament_package()