-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttp-server.cmake
More file actions
56 lines (46 loc) · 1.48 KB
/
Copy pathhttp-server.cmake
File metadata and controls
56 lines (46 loc) · 1.48 KB
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
set(LIB_NAME_SERVER "${PROJECT_NAME}-http-server-${PROJECT_VERSION}")
set(INC_SRV
include/http/ContentType.hpp
include/http/Server.hpp
include/http/Method.hpp
include/http/Handler.hpp
include/http/Structures.hpp
include/http/Request.hpp
include/http/Response.hpp
include/http/Status.hpp
include/http/QueryString.hpp
include/http/WebSocketFrame.hpp
include/http/Path.hpp)
set(INC_UTIL
include/util/URL.hpp
include/util/UUID.hpp
include/util/String.hpp)
set(INC include/Exception.hpp
include/netppconfig.h)
set(HEADERS_SERVER
${INC_SRV}
${INC_UTIL}
${INC})
set(SOURCES_SERVER
sources/http/ContentType.cpp
sources/http/Server.cpp
sources/http/Handler.cpp
sources/http/QueryString.cpp
sources/http/Request.cpp
sources/http/Response.cpp
sources/http/Method.cpp
sources/http/WebSocketFrame.cpp
sources/util/URL.cpp
sources/Exception.cpp
sources/util/UUID.cpp
sources/util/String.cpp
sources/http/Path.cpp)
include_directories("include")
add_library(_${LIB_NAME_SERVER} ${HEADERS_SERVER} ${SOURCES_SERVER})
target_include_directories(_${LIB_NAME_SERVER}
PUBLIC
${OPENSSL_INCLUDE_DIR}
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)
target_link_libraries(_${LIB_NAME_SERVER} ${OPENSSL_LIBRARIES})