# Common library - shared utilities and types

add_library(smartbotic_common STATIC
    src/common.cpp
)

target_include_directories(smartbotic_common
    PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
        $<INSTALL_INTERFACE:include>
)

target_compile_options(smartbotic_common PRIVATE ${SMARTBOTIC_CXX_WARNINGS})

target_link_libraries(smartbotic_common
    PUBLIC
        spdlog::spdlog
        nlohmann_json::nlohmann_json
)

add_library(smartbotic::common ALIAS smartbotic_common)
