cmake_minimum_required(VERSION 3.10)
project(common_msgs)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

add_subdirectory(utils)

if (NOT TARGET robot_std_msgs)
    add_subdirectory(robot_std_msgs)
endif()
if (NOT TARGET robot_geometry_msgs)
    add_subdirectory(robot_geometry_msgs)
endif()
if (NOT TARGET robot_sensor_msgs)
    add_subdirectory(robot_sensor_msgs)
endif()
if (NOT TARGET robot_nav_msgs)
    add_subdirectory(robot_nav_msgs)
endif()
if(NOT TARGET robot_map_msgs)
    add_subdirectory(robot_map_msgs)
endif()
if(NOT TARGET robot_visualization_msgs)
    add_subdirectory(robot_visualization_msgs)
endif()
if(NOT TARGET robot_protocol_msgs)
    add_subdirectory(robot_protocol_msgs)
endif()