aboutsummaryrefslogtreecommitdiff
path: root/computer-network-experiment/CMakeLists.txt
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-06 22:13:43 +0800
committercrupest <crupest@outlook.com>2021-06-06 22:13:43 +0800
commita6088689ec605c97b846fb52beadc0de89fccf76 (patch)
tree43f2f4b328a0750ee7f56df13e7c340ea67dd49b /computer-network-experiment/CMakeLists.txt
parent27f3043a55e97c13eb586cf71a3d50cf48f67aca (diff)
downloadlife-a6088689ec605c97b846fb52beadc0de89fccf76.tar.gz
life-a6088689ec605c97b846fb52beadc0de89fccf76.tar.bz2
life-a6088689ec605c97b846fb52beadc0de89fccf76.zip
...
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)