-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
29 lines (23 loc) · 1.02 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
cmake_minimum_required(VERSION 3.24)
project(testserver)
# TODO: Once Botan 3.3.0 is released and the Conan2 recipe is available,
# switch from this provisional integration to conan
add_library(Botan::Botan STATIC IMPORTED)
set_target_properties(Botan::Botan
PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_SOURCE_DIR}/3rdparty/botan/build/include
IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/3rdparty/botan/libbotan-3.a)
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost 1.80.0 REQUIRED program_options)
add_executable(${PROJECT_NAME}
src/ocsp_cache.h
src/ocsp_cache.cpp
src/main.cpp)
set_target_properties(${PROJECT_NAME}
PROPERTIES
CXX_STANDARD 20
EXPORT_COMPILE_COMMANDS On)
target_link_libraries(${PROJECT_NAME}
Botan::Botan
Boost::boost
Boost::program_options)