2023-06-28 04:58:38 -03:00
|
|
|
cmake_minimum_required(VERSION 3.8)
|
|
|
|
project(ardupilot_msgs)
|
|
|
|
|
|
|
|
# --------------------------------------------------------------------------- #
|
|
|
|
# Find dependencies.
|
|
|
|
|
|
|
|
find_package(ament_cmake REQUIRED)
|
2023-12-07 02:49:02 -04:00
|
|
|
find_package(geometry_msgs REQUIRED)
|
|
|
|
find_package(std_msgs REQUIRED)
|
2023-06-28 04:58:38 -03:00
|
|
|
find_package(rosidl_default_generators REQUIRED)
|
|
|
|
|
|
|
|
# --------------------------------------------------------------------------- #
|
|
|
|
# Generate and export message interfaces.
|
|
|
|
|
|
|
|
rosidl_generate_interfaces(${PROJECT_NAME}
|
2023-12-07 02:49:02 -04:00
|
|
|
"msg/GlobalPosition.msg"
|
2023-06-28 04:58:38 -03:00
|
|
|
"srv/ArmMotors.srv"
|
2023-08-19 07:17:19 -03:00
|
|
|
"srv/ModeSwitch.srv"
|
2023-12-07 02:49:02 -04:00
|
|
|
DEPENDENCIES geometry_msgs std_msgs
|
2023-06-28 04:58:38 -03:00
|
|
|
ADD_LINTER_TESTS
|
|
|
|
)
|
|
|
|
|
|
|
|
ament_export_dependencies(rosidl_default_runtime)
|
|
|
|
|
2023-11-21 22:15:13 -04:00
|
|
|
if(BUILD_TESTING)
|
|
|
|
find_package(ament_lint_auto REQUIRED)
|
|
|
|
ament_lint_auto_find_test_dependencies()
|
|
|
|
endif()
|
|
|
|
|
2023-06-28 04:58:38 -03:00
|
|
|
# --------------------------------------------------------------------------- #
|
|
|
|
# Call last.
|
|
|
|
|
|
|
|
ament_package()
|