There are a few different ways of installing/reusing mp::fsm
in your project
mp::fsm
is a standalone header-only library without any additional dependencies.
It can be simply copied to your source tree and used as a regular header file.
To use mp::fsm
as a cmake
imported library exported as cmake
target via cmake
configuration files following steps may be done.
mkdir build && cd build
cmake ../src -DCMAKE_INSTALL_PREFIX=<your_cmake_installation_dir> <your_cmake_configuration>
cmake --build . --target install <your_cmake_configuration>
To use such cmake
target in your project it is enough to add following line to your CMakeList.txt
file
find_package(fsm CONFIG REQUIRED)
and configure it with
cmake .. -DCMAKE_INSTALL_PREFIX=<your_cmake_installation_dir> <your_cmake_configuration>
To use mp::fsm
with cmake
via conan
it is enough to:
- add following remote to your local
conan
instance
conan remote add conan-mpusz https://api.bintray.com/conan/mpusz/conan-mpusz
- add following dependency to your
conanfile.txt
orconanfile.py
files:
requires = "fsm-variant/1.0.0@mpusz/stable"