build script

This commit is contained in:
Alex Janka 2022-07-22 13:30:53 +10:00
parent c70facffaa
commit 76cbb2c271
2 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
mac/*
win/*
win-mingw/*
.vscode/*

6
build.sh Executable file
View file

@ -0,0 +1,6 @@
if [ -z $1 ]; then
echo "No toolchain specified!"
return
fi
cd source
cmake -B cmake-build-install-$1 -DCMAKE_INSTALL_PREFIX=../$1 -DCMAKE_TOOLCHAIN_FILE=../toolchain-$1.cmake && cmake --build cmake-build-install-$1 --target install