-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
119 lines (113 loc) · 1.82 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# CMakeList.txt : Top-level CMake project file, do global configuration
# and include sub-projects here.
#
cmake_minimum_required (VERSION 3.8)
set(CMAKE_CXX_STANDARD 20)
# Absolute paths to source files
cmake_policy(SET CMP0076 NEW)
project ("shitty")
add_library(shitty)
target_include_directories(
shitty
INTERFACE
.
)
target_include_directories(
shitty
PRIVATE
dependencies
)
target_link_libraries(
shitty
PRIVATE
fb64
hpack
)
# Include sub-projects.
add_subdirectory ("dependencies/fb64")
add_subdirectory ("dependencies/hpack")
add_subdirectory ("http1")
add_subdirectory ("http2")
target_sources(shitty
PRIVATE
ClientStream.h
Connection.cpp
Connection.h
ConnectionManager.cpp
ConnectionManager.h
Date.cpp
Date.h
Error.cpp
Error.h
EventReceiver.cpp
EventReceiver.h
Headers.cpp
Headers.h
Message.cpp
Message.h
MessageHandler.cpp
MessageHandler.h
Payload.h
Payload-inl.h
ProxyHandler.cpp
ProxyHandler.h
Request.cpp
Request.h
RequestHandler.cpp
RequestHandler.h
RequestHandlerFactory.h
Response.cpp
Response.h
Route.cpp
Route-inl.h
Routes.cpp
Routes.h
safefd.h
Server.cpp
Server.h
ServerStream.h
# Obsolete?
#settings.cpp
#settings.h
SignalReceiver.cpp
SignalReceiver.h
SignalSource.cpp
SignalSource.h
SimpleMessageHandler.cpp
SimpleMessageHandler.h
StaticResponder.cpp
StaticResponder.h
StatusStrings.cpp
StatusStrings.h
Stream.cpp
Stream.h
StreamBuf.cpp
StreamBuf.h
StringUtils.h
StringUtils-inl.h
SwitchTransport.cpp
SwitchTransport.h
UnhandledRequestHandler.cpp
UnhandledRequestHandler.h
)
add_executable(hello-world
HelloWorld.cpp
)
target_link_libraries(hello-world
fb64
shitty
)
add_executable(print-requests
PrintRequestServer.cpp
)
target_link_libraries(print-requests
fb64
shitty
)
add_executable(proxy
ProxyServer.cpp
)
target_link_libraries(proxy
fb64
shitty
)