forked from georgesofianosgr/HTTP-Web-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
57 lines (49 loc) · 1.26 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
cmake_minimum_required(VERSION 3.3)
project(http2go)
find_package(OPENGL REQUIRED)
set(FILES
filesystemrequesthandler.cpp
filesystemrequesthandler.h
helprequesthandler.cpp
helprequesthandler.h
httpserver.cpp
httpserver.h
httprequest.cpp
httprequest.h
httpresponse.cpp
httpresponse.h
httputility.h
main.cpp
mimetypes.cpp
mimetypes.h
stringrequesthandler.cpp
stringrequesthandler.h
libs/imgui/imgui.cpp
libs/imgui/imgui.h
libs/imgui/imgui_draw.cpp
libs/imgui/imgui_impl_win32gl2.cpp
libs/imgui/imgui_impl_win32gl2.h
libs/imgui/imgui_applog.h
libs/system.io/include/system.io.directoryinfo.h
libs/system.io/include/system.io.fileinfo.h
libs/system.io/include/system.io.filesysteminfo.h
libs/system.io/include/system.io.path.h
libs/system.io/src/system.io.cpp
)
add_executable(http2go WIN32 ${FILES})
target_include_directories(http2go
PRIVATE libs/system.io/include
PRIVATE libs/imgui
)
target_compile_features(http2go
PRIVATE cxx_auto_type
PRIVATE cxx_nullptr
PRIVATE cxx_range_for
PRIVATE cxx_thread_local
)
target_link_libraries(http2go
ws2_32 ${OPENGL_LIBRARIES}
)
target_compile_definitions(http2go
PUBLIC -DWIN32
)