Minimal dependency, fast to compile and fast to run OSM entities counter (nodes, ways, relations).
For now, and until I have some time to move the code from there, the actual usage is under test
.
There is only a phony file in the include dir. All the magic happens in test.
- g++11/clang-13 or higher
- cmake 3.22 or higher
- make or ninja
- (optional) conan - helps a lot
Assumes you have clone the repo and you have cd
ed into it.
cmake -Sconan -Bbuild/gcc-11-Release -DCMAKE_BUILD_TYPE=Release
cmake -S. -Bbuild/gcc-11-Release -DCMAKE_BUILD_TYPE=Release
cmake -S. -Bbuild/gcc-11-Release -DCMAKE_BUILD_TYPE=Release
-DCOUNT_OSM_UNIT_TESTS=ON
cmake -S. -Bbuild/gcc-11-Release -DCMAKE_BUILD_TYPE=Release
-DCOUNT_OSM_BENCHMARKS=ON
Inspired by the amazing work of Stefan Karschti: https://github.com/stefankarschti/inputosm
Tricks from: