fileserver/lib/CMakeLists.txt
Mutzi 7334bd8e71
All checks were successful
/ Build the server (push) Successful in 3m4s
Moved dependencies into separate repo
2023-10-24 11:38:52 +02:00

20 lines
789 B
CMake

include(FetchContent)
set(BOTAN_MODULES argon2fmt hotp base32 auto_rng system_rng tls13 certstor_system certstor_flatfile md5)
FetchContent_Declare(spdlog GIT_REPOSITORY https://gitea.mattv.de/root/cmake-libraries.git GIT_TAG origin/spdlog)
FetchContent_Declare(restbed GIT_REPOSITORY https://gitea.mattv.de/root/cmake-libraries.git GIT_TAG origin/restbed)
FetchContent_Declare(botan GIT_REPOSITORY https://gitea.mattv.de/root/cmake-libraries.git GIT_TAG origin/botan)
FetchContent_MakeAvailable(spdlog restbed botan)
add_library(miniz STATIC miniz/miniz.c miniz/miniz.h)
target_include_directories(miniz PUBLIC miniz)
add_library(${PROJECT_NAME}_libs INTERFACE)
target_link_libraries(${PROJECT_NAME}_libs INTERFACE
spdlog::spdlog
restbed::restbed
Botan::Botan
miniz
)