aboutsummaryrefslogtreecommitdiff
path: root/computer-network-experiment/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'computer-network-experiment/CMakeLists.txt')
-rw-r--r--computer-network-experiment/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/computer-network-experiment/CMakeLists.txt b/computer-network-experiment/CMakeLists.txt
index dc82736..4d4277c 100644
--- a/computer-network-experiment/CMakeLists.txt
+++ b/computer-network-experiment/CMakeLists.txt
@@ -10,10 +10,14 @@ set(CMAKE_CXX_STANDARD 17)
find_package(fmt CONFIG REQUIRED)
find_package(Microsoft.GSL CONFIG REQUIRED)
add_library(base STATIC Common.cpp StringUtil.cpp Output.cpp)
-target_link_libraries(base PUBLIC Microsoft.GSL::GSL fmt::fmt)
+target_link_libraries(base PUBLIC Microsoft.GSL::GSL fmt::fmt Folly::folly)
+if(WIN32)
+target_link_libraries(base PUBLIC Ws2_32)
+endif()
add_executable(client client.cpp)
+target_link_libraries(client PRIVATE base)
add_executable(server server.cpp)
find_package(folly CONFIG REQUIRED)
-target_link_libraries(server PRIVATE base Folly::folly)
+target_link_libraries(server PRIVATE base)