https://github.com/dabbertorres/cppnet
https://github.com/dabbertorres/cppnet
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dabbertorres/cppnet
- Owner: dabbertorres
- License: mit
- Created: 2022-01-31T21:59:42.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-09T19:07:31.000Z (6 months ago)
- Last Synced: 2025-01-09T20:19:46.044Z (6 months ago)
- Language: C++
- Size: 617 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# net for C++
Networking library for C++. Uses C++ 23 features.
## Building
Uses vcpkg for obtaining dependencies.
```sh
cmake -B build \
-DBUILD_TESTING=TRUE \
-DBUILD_EXAMPLE=TRUE \
cmake --build build
```### Examples
#### Specify Compiler and Alternate Build System
```sh
cmake -B build \
-G"Ninja Multi-Config" \
-DBUILD_TESTING=TRUE \
-DBUILD_EXAMPLE=TRUE \
-DCMAKE_C_COMPILER=/usr/local/opt/llvm/bin/clang \
-DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++ \
-DCMAKE_PREFIX_PATH=/usr/local/opt/llvm/lib
cmake --build build --config Debug
```## Testing
Uses Catch2.
```sh
cmake -B build -DBUILD_TESTING=TRUE
cmake --build build
ctest --test-dir build # OR directly run ./build/test/Debug/tests
```