diff options
author | fschildt <florian.schildt@protonmail.com> | 2025-07-21 16:07:28 +0200 |
---|---|---|
committer | fschildt <florian.schildt@protonmail.com> | 2025-07-21 16:07:28 +0200 |
commit | b46a0d9369fbaa1938f0968ab216bc2d564a9c37 (patch) | |
tree | c28b75187d01be9642af56a54a6101f51b25e4a7 /compile.sh |
Diffstat (limited to 'compile.sh')
-rwxr-xr-x | compile.sh | 16 |
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 .. |