Files
bongo/src/libs/msgapi/CMakeLists.txt
T
2026-07-18 13:31:40 +02:00

45 lines
897 B
CMake

#StrictCompile()
add_library(bongomsgapi SHARED
msgaddr.c
msgapi.c
msgauth.c
msgcollector.c
msgdate.c
msghttp.c
sqldb.c
)
target_link_libraries(bongomsgapi
bongoxpl
bongocal
bongojson
SQLite3::SQLite3
LibIcal::ical
CURL::libcurl
)
install(TARGETS bongomsgapi DESTINATION ${LIB_INSTALL_DIR})
if(BUILD_TESTING)
add_executable(msgapi-sqldb-transaction-test
tests/sqldb-transaction-test.c)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_link_options(msgapi-sqldb-transaction-test PRIVATE
"LINKER:--no-as-needed")
endif()
target_link_libraries(msgapi-sqldb-transaction-test PRIVATE
bongomsgapi
bongocal
bongojson
bongoutil
bongoxpl
SQLite3::SQLite3
Threads::Threads)
add_test(NAME msgapi-sqldb-transactions
COMMAND msgapi-sqldb-transaction-test)
set_tests_properties(msgapi-sqldb-transactions PROPERTIES TIMEOUT 30)
endif()
add_subdirectory(auth-backends)