| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- # Database service - smartbotic-db binary and storage library
- # Storage engine library
- add_library(smartbotic_database STATIC
- src/document.cpp
- src/collection.cpp
- src/collection_meta.cpp
- )
- target_include_directories(smartbotic_database
- PUBLIC
- $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
- $<INSTALL_INTERFACE:include>
- )
- target_compile_options(smartbotic_database PRIVATE ${SMARTBOTIC_CXX_WARNINGS})
- target_link_libraries(smartbotic_database
- PUBLIC
- smartbotic::common
- spdlog::spdlog
- nlohmann_json::nlohmann_json
- )
- add_library(smartbotic::database ALIAS smartbotic_database)
- # Database service executable
- add_executable(smartbotic-db
- src/main.cpp
- )
- target_include_directories(smartbotic-db
- PRIVATE
- ${CMAKE_CURRENT_SOURCE_DIR}/include
- )
- target_compile_options(smartbotic-db PRIVATE ${SMARTBOTIC_CXX_WARNINGS})
- target_link_libraries(smartbotic-db
- PRIVATE
- smartbotic::database
- smartbotic::proto
- sodium
- )
|