cmake_minimum_required(VERSION 3.8) project(ardupilot_msgs) # --------------------------------------------------------------------------- # # Find dependencies. find_package(ament_cmake REQUIRED) find_package(geometry_msgs REQUIRED) find_package(std_msgs REQUIRED) find_package(rosidl_default_generators REQUIRED) # --------------------------------------------------------------------------- # # Generate and export message interfaces. rosidl_generate_interfaces(${PROJECT_NAME} "msg/GlobalPosition.msg" "msg/Status.msg" "srv/ArmMotors.srv" "srv/ModeSwitch.srv" "srv/Takeoff.srv" DEPENDENCIES geometry_msgs std_msgs 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()