Skip to content

DEIS-Tools/libstrategy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

134 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libstrategy

Library for learning strategies.

Dependencies

Library-only build requires:

  • ptrie (CMake will fetch automatically if not installed)
  • nlohmann_json (CMake will fetch automatically if not installed)

Full project requires:

For Ubuntu 24.04 install build tools and library dependencies:

sudo apt install cmake ninja-build g++ 
sudo apt install libboost-program-options-dev libboost-test-dev  # optional

For macOS install build tools and library dependencies:

brew install cmake ninja gcc
brew install boost  # optional

Compile and Install

Run minimal compilation (just the library) with Release settings into build-quick/lib:

cmake --workflow --preset quick-release

Install the Release build of build-quick into $PWD/local path:

cmake --install build-quick --config Release --prefix $PWD/local

Example Usage

Directory example contains minimal example demonstrating how to use the library.

Test the example with libstrategy installed into local directory:

cmake -S example -B build-example -DCMAKE_PREFIX_PATH=$PWD/local -DCMAKE_MODULE_PATH=$PWD/cmake
cmake --build build-example
ctest --test-dir build-example --output-on-failure

Other Presets

Inspect workflow presets:

cmake --workflow --list-presets

For example, configure, build and test for Development with Sanitizers (GCC/Clang/AppleClang):

cmake --workflow --preset debug-san

Other configuration presets:

cmake --list-presets=configure

Other build presets:

cmake --list-presets=build

Other test presets:

cmake --list-presets=test

About

No description, website, or topics provided.

Resources

License

Stars

3 stars

Watchers

4 watching

Forks

Packages

 
 
 

Contributors