See Homepage
- cmake 3.27+
- g++20 or higher
- (optional) doxygen, graphviz for generate documentation
git clone https://github.com/alkut/stonks
cd stonks
mkdir build
cmake -S . -B ./build
(note: see cmake/Options.cmake)
cmake --build ./build -j {nproc}
cd ./build && ctest
git clone https://github.com/alkut/stonks
cd stonks
mkdir build
cmake -DSTONKS_ENABLE_INSTALL=ON -S . -B ./build
cmake --build ./build -j {nproc}
cmake --install
Once library installed on the host machine, it is available by find_package(Stonks)
.
That command propagate following cmake vars:
- Stonks_VERSION - version of library
- Stonks_INCLUDE_DIR - location of library include See examples/CmakeLists.txt for more information.
git clone https://github.com/alkut/stonks
cd stonks
mkdir build
cmake -DSTONKS_ENABLE_DOCS=ON -S . -B ./build
cmake --build ./build --target docs -j {nproc}
doxygen, graphviz required. Artifacts can be found in docs/ folder
git clone https://github.com/alkut/stonks
cd stonks
mkdir build
cmake -DCMAKE_BUILD_TYPE=Release -DSTONKS_ENABLE_STONKS_ENABLE_BENCHMARKS=ON -S . -B ./build
cmake --build ./build --target benchmark_tests -j {nproc}
You can customize library configuration, see src/defines.h