Skip to content

Building

Filip Tomaszewski edited this page Jul 7, 2019 · 9 revisions

Table of contents

Build dependencies ^

SMAM doesn't pull its dependencies automatically, you need the following installed to compile SMAM:

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. Setup CMake providing Debug or Release as CMAKE_BUILD_TYPE:
    • cmake -DCMAKE_BUILD_TYPE=Debug .. (required for automated tests)
    • cmake -DCMAKE_BUILD_TYPE=Release ..
  4. Build the project: `cmake --build .

Running and testing ^

From the previously created build directory:

  • Execute ./bin/smam to run SMAM.
  • Execute ./bin/tests to run tests (only in Debug build).
  • Call ../test/alltest.sh . ./bin/smam to run execution tests (should be in Debug build)
Clone this wiki locally