CMakeLists.txt 513 B

123456789101112131415161718192021
  1. # Common library - shared utilities and types
  2. add_library(smartbotic_common STATIC
  3. src/common.cpp
  4. )
  5. target_include_directories(smartbotic_common
  6. PUBLIC
  7. $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
  8. $<INSTALL_INTERFACE:include>
  9. )
  10. target_compile_options(smartbotic_common PRIVATE ${SMARTBOTIC_CXX_WARNINGS})
  11. target_link_libraries(smartbotic_common
  12. PUBLIC
  13. spdlog::spdlog
  14. nlohmann_json::nlohmann_json
  15. )
  16. add_library(smartbotic::common ALIAS smartbotic_common)