cmake_minimum_required(VERSION 3.5) project(std_msgs) # Default to C++17 if(NOT CMAKE_CXX_STANDARD) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic) endif() find_package(ament_cmake REQUIRED) find_package(builtin_interfaces REQUIRED) find_package(rosidl_default_generators REQUIRED) set(msg_files "msg/Bool.msg" "msg/Byte.msg" "msg/ByteMultiArray.msg" "msg/Char.msg" "msg/ColorRGBA.msg" "msg/Empty.msg" "msg/Float32.msg" "msg/Float32MultiArray.msg" "msg/Float64.msg" "msg/Float64MultiArray.msg" "msg/Header.msg" "msg/Int16.msg" "msg/Int16MultiArray.msg" "msg/Int32.msg" "msg/Int32MultiArray.msg" "msg/Int64.msg" "msg/Int64MultiArray.msg" "msg/Int8.msg" "msg/Int8MultiArray.msg" "msg/MultiArrayDimension.msg" "msg/MultiArrayLayout.msg" "msg/String.msg" "msg/UInt16.msg" "msg/UInt16MultiArray.msg" "msg/UInt32.msg" "msg/UInt32MultiArray.msg" "msg/UInt64.msg" "msg/UInt64MultiArray.msg" "msg/UInt8.msg" "msg/UInt8MultiArray.msg" ) rosidl_generate_interfaces(${PROJECT_NAME} ${msg_files} DEPENDENCIES builtin_interfaces ADD_LINTER_TESTS ) ament_export_dependencies(rosidl_default_runtime) ament_package()