-
Notifications
You must be signed in to change notification settings - Fork 0
Building
Filip Tomaszewski edited this page Jul 7, 2019
·
9 revisions
Build dependencies ^
SMAM doesn't pull its dependencies automatically, you need the following installed to compile SMAM:
-
g++-8
andgcc-8
(C++17 Filesystem library) - libcurl
- libxml++ (preferably version 3.0+)
- nlohmann json
- Boost.Program_options
- libzip
- Package names for Ubuntu are available in
.travis.yml
file.
Building ^
- Clone the repo and cd to it:
git clone https://github.com/Phil25/SMAM && cd SMAM
- Designate a directory for building:
mkdir build && cd build
- Setup CMake providing
Debug
orRelease
asCMAKE_BUILD_TYPE
:-
cmake -DCMAKE_BUILD_TYPE=Debug ..
(required for automated tests) cmake -DCMAKE_BUILD_TYPE=Release ..
-
- 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 inDebug
build). - Call
../test/alltest.sh . ./bin/smam
to run execution tests (should be inDebug
build)