Skip to content

Building

Filip Tomaszewski edited this page Aug 8, 2019 · 9 revisions

SMAM uses Conan to manage its dependencies and build the project. Recommended installation is through pip: pip install conan. More info on installing Conan on its wiki.

Building SMAM is supported only on Linux. Windows and OSX builds are planned.

As the build system installs dependencies on your system, I strongly recommend you perform these steps in a venv.

Building

  1. Clone the repo and cd to it: git clone https://github.com/Phil25/SMAM && cd SMAM
  2. Designate a directory for building: mkdir build && cd build
  3. Install build dependencies and set up CMake using Conan.
    • conan install .. --build missing
    • For development and unit testing, append -s build_type=Debug
  4. Build the project: conan build ..

Running and testing

From the previously created build directory:

  • ./bin/smam to run SMAM.
  • ./bin/tests to run unit tests (only in Debug build).
  • python -m pytest .. to run integration tests (should be in Debug build)
Clone this wiki locally