aboutsummaryrefslogtreecommitdiff
path: root/compile.sh
diff options
context:
space:
mode:
authorfschildt <florian.schildt@protonmail.com>2025-08-22 15:23:11 +0200
committerfschildt <florian.schildt@protonmail.com>2025-10-15 11:33:23 +0200
commit04e4627e6c11254ee6f49edf5feb1b8d711da41a (patch)
treee28f2e62d3e1b83f9686cdeb102e3f47379e6793 /compile.sh
upload projectHEADmaster
Diffstat (limited to 'compile.sh')
-rwxr-xr-xcompile.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/compile.sh b/compile.sh
new file mode 100755
index 0000000..444f35e
--- /dev/null
+++ b/compile.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+mkdir -p build
+cd build
+
+if [[ "$0" == "Release" ]]; then
+ echo "Release"
+ cmake -DCMAKE_BUILD_TYPE=Release ../cmake
+ cmake --build .
+else
+ echo "Debug"
+ cmake -DCMAKE_BUILD_TYPE=Debug ../cmake
+ cmake --build .
+fi
+
+cd ..