This commit is contained in:
Rosalie Wanders committed 2020-09-20 20:37:48 +02:00
1 parent 116da39c62
commit 754bc58a5b
7 files changed
+75 -49

No files matched your search

+12 -1
View File
@@ -6,14 +6,25 @@ toplvl_dir="$(realpath "$script_dir/../../")"
build_dir="$toplvl_dir/Build"
build_config="${1:-Debug}"
install_dir="$toplvl_dir/Bin/$build_config"
generator="${2:-Unix Makefiles}"
mkdir -p "$build_dir"
pushd "$build_dir"
cmake -S "$toplvl_dir" -B "$build_dir" -DCMAKE_BUILD_TYPE="$build_config"
if [[ $(uname -s) = *MINGW64* ]]
then
generator="MSYS Makefiles"
fi
cmake -S "$toplvl_dir" -B "$build_dir" -DCMAKE_BUILD_TYPE="$build_config" -G "$generator"
make -j6
make install DESTDIR="$install_dir"
if [[ $(uname -s) = *MINGW64* ]]
then
make bundle_dependencies
fi
popd