forked from clydemcqueen/orca3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
44 lines (37 loc) · 1.06 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
cmake_minimum_required(VERSION 3.5)
project(orca_msgs)
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()
# Emulate colcon in CLion
if($ENV{CLION_IDE})
find_package(fastrtps_cmake_module REQUIRED)
set(FastRTPS_INCLUDE_DIR "/opt/ros/foxy/include")
set(FastRTPS_LIBRARY_RELEASE "/opt/ros/foxy/lib/libfastrtps.so")
endif()
# Debugging: set _dump_all_variables to true
set(_dump_all_variables false)
if(_dump_all_variables)
get_cmake_property(_variable_names VARIABLES)
list(SORT _variable_names)
foreach(_variable_name ${_variable_names})
message(STATUS "${_variable_name}=${${_variable_name}}")
endforeach()
endif()
find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()
# Generate ROS messages
rosidl_generate_interfaces(
orca_msgs
msg/Barometer.msg
msg/Depth.msg
msg/Effort.msg
msg/Status.msg
msg/StereoStats.msg
msg/Thrust.msg
DEPENDENCIES geometry_msgs std_msgs
)
ament_auto_package()