diff options
Diffstat (limited to 'computer-network-experiment/CMakeLists.txt')
-rw-r--r-- | computer-network-experiment/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/computer-network-experiment/CMakeLists.txt b/computer-network-experiment/CMakeLists.txt index 41fec71..923de1f 100644 --- a/computer-network-experiment/CMakeLists.txt +++ b/computer-network-experiment/CMakeLists.txt @@ -7,8 +7,13 @@ project(network-experiment) set(CMAKE_CXX_STANDARD 17)
+find_package(fmt CONFIG REQUIRED)
+find_package(Microsoft.GSL CONFIG REQUIRED)
+add_library(base STATIC StringUtil.cpp)
+target_link_libraries(base PUBLIC Microsoft.GSL::GSL fmt::fmt)
+
add_executable(client client.cpp)
add_executable(server server.cpp)
find_package(folly CONFIG REQUIRED)
-target_link_libraries(server PRIVATE Folly::folly)
+target_link_libraries(server PRIVATE base Folly::folly)
|