-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (31 loc) · 904 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
cmake_minimum_required(VERSION 3.9)
project(Boosting)
set(CMAKE_CXX_STANDARD 11)
find_package(Boost 1.65.1 COMPONENTS system filesystem REQUIRED)
if(Boost_FOUND)
message(STATUS "Boost_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}")
message(STATUS "Boost_LIBRARIES: ${Boost_LIBRARIES}")
message(STATUS "Boost_VERSION: ${Boost_VERSION}")
include_directories(${Boost_INCLUDE_DIRS})
endif()
add_executable(Boosting
connection.cpp
connection.hpp
connection_manager.cpp
connection_manager.hpp
header.hpp
main.cpp
mime_types.cpp
mime_types.hpp
reply.cpp
reply.hpp
request.hpp
request_handler.cpp
request_handler.hpp
request_parser.cpp
request_parser.hpp
server.cpp
server.hpp)
if(Boost_FOUND)
target_link_libraries(Boosting ${Boost_LIBRARIES})
endif()