add build scripts

This commit is contained in:
2018-12-08 08:59:16 +07:00
parent 3c205ce312
commit 47d3502a47
8 changed files with 63 additions and 18 deletions

9
scripts/build_debug.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -e
BUILD_DIR=`dirname "$BASH_SOURCE"`/../build
mkdir -p $BUILD_DIR/debug
cd $BUILD_DIR/debug
cmake -DCMAKE_BUILD_TYPE=Debug ../..
cmake --build . -- -j8
ctest --verbose
cd ../..