-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (21 loc) · 932 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
30 lines (21 loc) · 932 Bytes
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
cmake_minimum_required(VERSION 3.20)
project(cpp_web_server)
set(CMAKE_CXX_STANDARD 20)
add_library(hoothoot_core STATIC
Networking/Sockets/SimpleSocket.cpp
Networking/Sockets/BindingSocket.cpp
Networking/Sockets/ListeningSocket.cpp
Networking/Servers/SimpleServer.cpp
Networking/Servers/WebServer.cpp
Networking/Sockets/ConnectingSocket.cpp
)
add_executable(cpp_web_server
hoothoot.cpp
)
target_include_directories(hoothoot_core PUBLIC ${CMAKE_SOURCE_DIR})
target_compile_features(hoothoot_core PUBLIC cxx_std_20)
target_compile_features(cpp_web_server PRIVATE cxx_std_20)
target_compile_options(hoothoot_core PRIVATE -Wall -Wextra -Wpedantic)
target_compile_options(cpp_web_server PRIVATE -Wall -Wextra -Wpedantic)
target_link_libraries(cpp_web_server PRIVATE hoothoot_core)
set_target_properties(cpp_web_server PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})