ardupilot/Tools/ros2/ardupilot_msgs/CMakeLists.txt
Ryan Friedman 61e2c5fda1 Tools: ros2: Enforce black instead of flake8
* Removed dependency on ament_lint_common
* Removed all flake8 artifacts
* Ordered linters alphabetically

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-11-22 11:50:39 -08:00

30 lines
753 B
CMake

cmake_minimum_required(VERSION 3.8)
project(ardupilot_msgs)
# --------------------------------------------------------------------------- #
# Find dependencies.
find_package(ament_cmake REQUIRED)
find_package(rosidl_default_generators REQUIRED)
# --------------------------------------------------------------------------- #
# Generate and export message interfaces.
rosidl_generate_interfaces(${PROJECT_NAME}
"srv/ArmMotors.srv"
"srv/ModeSwitch.srv"
ADD_LINTER_TESTS
)
ament_export_dependencies(rosidl_default_runtime)
if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()
# --------------------------------------------------------------------------- #
# Call last.
ament_package()