-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (36 loc) · 1.26 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
cmake_minimum_required(VERSION 3.10)
project(YEP)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
set(CONAN_DISABLE_CHECK_COMPILER TRUE)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup(KEEP_RPATHS TARGETS)
find_package(Boost 1.78.0)
find_package(OpenSSL REQUIRED)
file(MAKE_DIRECTORY libraries)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/..)
set(SRC_ZIA
${CMAKE_CURRENT_SOURCE_DIR}/Core/main.cpp
${CMAKE_CURRENT_SOURCE_DIR}/Core/Core.cpp
${CMAKE_CURRENT_SOURCE_DIR}/Core/Logger.cpp
${CMAKE_CURRENT_SOURCE_DIR}/Core/Config.cpp
${CMAKE_CURRENT_SOURCE_DIR}/Core/ModuleLoader.cpp
${CMAKE_CURRENT_SOURCE_DIR}/Core/fatalException.cpp
${CMAKE_CURRENT_SOURCE_DIR}/Communication/Response.cpp
${CMAKE_CURRENT_SOURCE_DIR}/Communication/Request.cpp
${CMAKE_CURRENT_SOURCE_DIR}/Core/ThreadPool.cpp
)
add_executable(zia ${SRC_ZIA})
target_compile_features(zia PRIVATE cxx_std_20)
target_include_directories(zia
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/Core/include
)
include_directories(${Boost_INCLUDE_DIR})
include_directories(${OPENSSL_INCLUDE_DIR})
target_link_libraries(zia
CONAN_PKG::boost
${CMAKE_DL_LIBS}
${OPENSSL_LIBRARIES}
)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/Modules)