2023-10-24 09:38:52 +00:00
|
|
|
include(FetchContent)
|
2023-10-23 16:30:35 +00:00
|
|
|
|
2023-10-24 09:38:52 +00:00
|
|
|
set(BOTAN_MODULES argon2fmt hotp base32 auto_rng system_rng tls13 certstor_system certstor_flatfile md5)
|
2023-10-20 11:02:21 +00:00
|
|
|
|
2023-10-24 09:38:52 +00:00
|
|
|
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)
|
2023-10-20 11:02:21 +00:00
|
|
|
|
|
|
|
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
|
2023-10-24 09:38:52 +00:00
|
|
|
restbed::restbed
|
|
|
|
Botan::Botan
|
2023-10-20 11:02:21 +00:00
|
|
|
miniz
|
|
|
|
)
|