2018-03-23 17:27:20 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-03-24 18:10:58 +01:00
|
|
|
if [ "$1" = "gcc" ]
|
|
|
|
then
|
|
|
|
cxx=g++
|
|
|
|
cc=gcc
|
|
|
|
elif [ "$1" = "clang" ]
|
|
|
|
then
|
|
|
|
cxx=clang++
|
|
|
|
cc=clang
|
|
|
|
fi
|
|
|
|
|
2018-03-23 17:27:20 +01:00
|
|
|
git submodule update --init --recursive
|
|
|
|
mkdir -p build/debug
|
|
|
|
cd build/debug
|
2018-03-24 18:10:58 +01:00
|
|
|
cmake ../.. -GNinja -DANTHEM_BUILD_TESTS=ON -DCMAKE_CXX_COMPILER=${cxx} -DCMAKE_C_COMPILER=${cc}
|
2018-03-23 17:27:20 +01:00
|
|
|
ninja anthem-app && ninja run-tests
|