https://github.com/prophetru/ipfilter
Educational project
https://github.com/prophetru/ipfilter
cmake cpp cpp11 cpp14 cpp17 cpp20 gtest outs
Last synced: 3 months ago
JSON representation
Educational project
- Host: GitHub
- URL: https://github.com/prophetru/ipfilter
- Owner: ProphetRu
- License: apache-2.0
- Created: 2024-01-13T17:14:50.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-20T16:55:14.000Z (over 2 years ago)
- Last Synced: 2025-01-20T15:59:22.184Z (over 1 year ago)
- Topics: cmake, cpp, cpp11, cpp14, cpp17, cpp20, gtest, outs
- Language: C++
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IP Filter
Educational project with [googletest](https://github.com/google/googletest)
## Build local Linux
```shell
sudo apt-get update && sudo apt-get install cmake libgtest-dev -y
cd IPFilter
mkdir build && cd build
cmake ..
# build release
cmake --build . --config Release
# build deb-package
cmake --build . --target package
```
## Build local Windows
```shell
vcpkg install gtest
vcpkg integrate install
cd IPFilter
mkdir build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE="path/to/vcpkg/scripts/buildsystems/vcpkg.cmake"
# build release
cmake --build . --config Release
```
## Testing
```shell
cat ip_filter.tsv | ./IPFilter | md5sum
# 24e7a7b2270daee89c64d3ca5fb3da1a -
```