cmake_minimum_required(VERSION 3.8)
project(calibration_vehicle_profile_interfaces)

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(rosidl_default_generators REQUIRED)
find_package(calibration_common_interfaces REQUIRED)

set(msg_files
  "msg/ChassisType.msg"
  "msg/SensorType.msg"
  "msg/CameraMountType.msg"
  "msg/ControlAxisType.msg"
  "msg/ControllerAlgorithmType.msg"
  "msg/CalibrationAbilityType.msg"
  "msg/CalibrationModuleType.msg"
  "msg/WorkflowStageType.msg"
  "msg/VehicleBaseInfo.msg"
  "msg/MechanicalArmProfile.msg"
  "msg/SensorProfile.msg"
  "msg/ControllerProfile.msg"
  "msg/ControllerSelection.msg"
  "msg/CalibrationCapability.msg"
  "msg/VehicleProfile.msg"
  "msg/RegisterOrUpdateVehicleProfileRequest.msg"
  "msg/VehicleProfileQuery.msg"
  "msg/VehicleProfileResponse.msg"
  "msg/EvaluateVehicleCalibrationApplicabilityRequest.msg"
  "msg/ApplicabilityIssue.msg"
  "msg/VehicleCalibrationApplicabilityResponse.msg"
)

set(srv_files
  "srv/Heartbeat.srv"
  "srv/RegisterOrUpdateVehicleProfile.srv"
  "srv/GetVehicleProfile.srv"
  "srv/EvaluateVehicleCalibrationApplicability.srv"
)

rosidl_generate_interfaces(${PROJECT_NAME}
  ${msg_files}
  ${srv_files}
  DEPENDENCIES calibration_common_interfaces
)

ament_export_dependencies(rosidl_default_runtime)
ament_package()
