Add build script

master
Melroy van den Berg 2020-11-21 00:53:52 +01:00
parent 6baeda4a72
commit 9a58be4e92
1 changed files with 18 additions and 0 deletions

18
scripts/build.sh Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
# By: Melroy van den Berg
# Description: Development build
if [ ! -d "build" ]; then
echo "Creating build directory..."
mkdir build
fi
if [ -z "$(ls build)" ]; then
echo "INFO: Run cmake & ninja"
cd build
cmake -GNinja ..
else
echo "INFO: Only run ninja..."
cd build
fi
ninja