aboutsummaryrefslogtreecommitdiff
path: root/network-handler/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'network-handler/CMakeLists.txt')
-rw-r--r--network-handler/CMakeLists.txt13
1 files changed, 11 insertions, 2 deletions
diff --git a/network-handler/CMakeLists.txt b/network-handler/CMakeLists.txt
index 9f3366c..12898dc 100644
--- a/network-handler/CMakeLists.txt
+++ b/network-handler/CMakeLists.txt
@@ -4,14 +4,23 @@ find_package(Boost COMPONENTS system program_options REQUIRED)
add_executable(network-handler
main.cpp
networkhandler.hpp networkhandler.cpp
+ acceptor.hpp acceptor.cpp
+ client.hpp client.cpp
)
target_compile_options(network-handler
- PRIVATE "-std=c++11"
+ PRIVATE "-std=c++14"
)
target_link_libraries(network-handler
PRIVATE Boost::boost
PRIVATE Boost::program_options
PRIVATE Boost::system
-) \ No newline at end of file
+)
+
+if(WIN32)
+ target_link_libraries(network-handler
+ PRIVATE wsock32
+ PRIVATE ws2_32
+ )
+endif()