diff options
author | crupest <crupest@outlook.com> | 2021-06-06 16:57:08 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-06-06 16:57:08 +0800 |
commit | d88b76be5395127383be79ce227ee68cb5a03a86 (patch) | |
tree | 0eff86a74e8bec7e15067545f9f62a692231886c /computer-network-experiment | |
parent | 57531f9c32a06fdc1a5e80e88cbbc29d45a6982b (diff) | |
download | life-d88b76be5395127383be79ce227ee68cb5a03a86.tar.gz life-d88b76be5395127383be79ce227ee68cb5a03a86.tar.bz2 life-d88b76be5395127383be79ce227ee68cb5a03a86.zip |
Add cmake.
Diffstat (limited to 'computer-network-experiment')
-rw-r--r-- | computer-network-experiment/.clangd | 2 | ||||
-rw-r--r-- | computer-network-experiment/.gitignore | 3 | ||||
-rw-r--r-- | computer-network-experiment/CMakeLists.txt | 14 |
3 files changed, 17 insertions, 2 deletions
diff --git a/computer-network-experiment/.clangd b/computer-network-experiment/.clangd deleted file mode 100644 index c28ae22..0000000 --- a/computer-network-experiment/.clangd +++ /dev/null @@ -1,2 +0,0 @@ -CompileFlags:
- Add: [-std=c++17]
diff --git a/computer-network-experiment/.gitignore b/computer-network-experiment/.gitignore index 43561d4..502724c 100644 --- a/computer-network-experiment/.gitignore +++ b/computer-network-experiment/.gitignore @@ -1,2 +1,5 @@ *.exe
*.pdb
+.cache
+build
+compile_commands.json
\ No newline at end of file diff --git a/computer-network-experiment/CMakeLists.txt b/computer-network-experiment/CMakeLists.txt new file mode 100644 index 0000000..41fec71 --- /dev/null +++ b/computer-network-experiment/CMakeLists.txt @@ -0,0 +1,14 @@ +cmake_minimum_required(VERSION 3.20)
+
+set(CMAKE_TOOLCHAIN_FILE $ENV{VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake
+ CACHE STRING "Vcpkg toolchain file")
+
+project(network-experiment)
+
+set(CMAKE_CXX_STANDARD 17)
+
+add_executable(client client.cpp)
+
+add_executable(server server.cpp)
+find_package(folly CONFIG REQUIRED)
+target_link_libraries(server PRIVATE Folly::folly)
|