This commit is contained in:
Rosalie Wanders
2020-09-20 19:14:38 +02:00
parent c135413244
commit 116da39c62
7 changed files with 142 additions and 32 deletions
+3 -2
View File
@@ -4,13 +4,14 @@ script_dir="$(dirname "$0")"
toplvl_dir="$(realpath "$script_dir/../../")"
build_dir="$toplvl_dir/Build"
install_dir="$toplvl_dir/Bin"
build_config="${1:-Debug}"
install_dir="$toplvl_dir/Bin/$build_config"
mkdir -p "$build_dir"
pushd "$build_dir"
cmake -S "$toplvl_dir" -B "$build_dir"
cmake -S "$toplvl_dir" -B "$build_dir" -DCMAKE_BUILD_TYPE="$build_config"
make -j6
make install DESTDIR="$install_dir"