-
Notifications
You must be signed in to change notification settings - Fork 10
/
CMakeLists.txt
27 lines (25 loc) · 987 Bytes
/
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
cmake_minimum_required(VERSION 3.5.1)
project(web_server)
set(CMAKE_CXX_STANDARD 11)
add_definitions(-DBOOST_LOG_DYN_LINK)
set(SOURCE_FILES
handler.hpp
main.cpp
ServerBase.hpp
ServerHttp.hpp
ServerHttps.hpp
XMLReader/tinyxml2.h
XMLReader/tinyxml2.cpp Init/Initializer.cpp Init/Initializer.h
CacheSystem/CacheManager.cpp CacheSystem/CacheManager.h
Logger/Logger.cpp Logger/Logger.h
CacheSystem/IOSystem.cpp CacheSystem/IOSystem.h
CacheSystem/RedisCacheManager.cpp CacheSystem/RedisCacheManager.h CacheSystem/DiskReader.cpp CacheSystem/DiskReader.h)
include_directories(XMLReader Init Logger CacheSystem
cpp_redis cpp_redis/builders cpp_redis/network)
link_directories(lib)
link_libraries(-lboost_system
-lssl -lcrypto -lpthread
-lboost_log -lboost_thread
-lboost_log_setup libcpp_redis.a libtacopie.a
-lboost_regex)
add_executable(web_server ${SOURCE_FILES})