cmake_minimum_required(VERSION 3.8)
project(calibration_common_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(action_msgs REQUIRED)

set(msg_files
  "msg/AgentReadinessRequest.msg"
  "msg/ErrorCode.msg"
  "msg/FileDigest.msg"
  "msg/FileReference.msg"
  "msg/HeartbeatRequest.msg"
  "msg/HeartbeatResponse.msg"
  "msg/JobAccepted.msg"
  "msg/JobQuery.msg"
  "msg/JobState.msg"
  "msg/JobStatus.msg"
  "msg/KeyValuePair.msg"
  "msg/Pose3D.msg"
  "msg/ReadinessIssue.msg"
  "msg/RequestHeader.msg"
  "msg/StandardResponse.msg"
  "msg/Vector3D.msg"
)

set(srv_files
  "srv/GetAgentReadiness.srv"
  "srv/Heartbeat.srv"
  "srv/QueryJobStatus.srv"
)

set(action_files
  "action/MonitorJob.action"
)

rosidl_generate_interfaces(${PROJECT_NAME}
  ${msg_files}
  ${srv_files}
  ${action_files}
  DEPENDENCIES action_msgs 
)

ament_export_dependencies(rosidl_default_runtime)
ament_package()
