18 lines
320 B
Bash
Executable File
18 lines
320 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "$1" = "gcc" ]
|
|
then
|
|
cxx=g++
|
|
cc=gcc
|
|
elif [ "$1" = "clang" ]
|
|
then
|
|
cxx=clang++
|
|
cc=clang
|
|
fi
|
|
|
|
git submodule update --init --recursive
|
|
mkdir -p build/debug
|
|
cd build/debug
|
|
cmake ../.. -GNinja -DANTHEM_BUILD_TESTS=ON -DCMAKE_CXX_COMPILER=${cxx} -DCMAKE_C_COMPILER=${cc}
|
|
ninja anthem-app && ninja run-tests
|