-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
61 lines (44 loc) · 1.07 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
cmake_minimum_required(VERSION 3.8)
project(Beasty-Tepee)
set(CMAKE_CXX_STANDARD 17)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
set(
public_headers
include/public/beasty-tepee/server.hpp
include/public/beasty-tepee/response.hpp
include/public/beasty-tepee/request_header_handler.hpp
include/public/beasty-tepee/request_body_handler.hpp
)
set(
private_headers
include/private/stream_request.hpp
include/private/worker.hpp
include/private/server_impl.hpp
include/private/fields_alloc.hpp
)
add_library(
beasty-tepee STATIC
src/server.cpp
src/server_impl.cpp
src/worker.cpp
src/request_header_handler.cpp
${public_headers}
${private_headers}
)
target_include_directories(
beasty-tepee
PRIVATE
include/private
PUBLIC
include/public
)
target_compile_definitions(
beasty-tepee
PRIVATE
_HAS_DEPRECATED_RESULT_OF=1
_WIN32_WINNT=0x0601
BOOST_BEAST_USE_STD_STRING_VIEW
)
target_link_libraries(beasty-tepee ${CONAN_LIBS})
add_subdirectory(examples)