cmake_minimum_required(VERSION 3.8)
project(ros_viz_adapter)

if(NOT CMAKE_CXX_STANDARD)
  set(CMAKE_CXX_STANDARD 17)
endif()
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(image_transport REQUIRED)
find_package(pluginlib REQUIRED)

add_executable(adapter src/adapter.cpp)
ament_target_dependencies(adapter rclcpp sensor_msgs image_transport pluginlib)
install(TARGETS adapter DESTINATION lib/${PROJECT_NAME})
install(DIRECTORY launch DESTINATION share/${PROJECT_NAME})
install(FILES README.md DESTINATION share/${PROJECT_NAME})
ament_package()
