Files
punchie-engine/configure
T

15 lines
318 B
Bash
Executable File

#!/bin/bash
BUILD_TYPE=""
if [[ "$1" == "Release" ]] || [[ "$1" == "RELEASE" ]] || [[ "$1" == "release" ]]
then
BUILD_TYPE="Release"
else
BUILD_TYPE="Debug"
fi
cmake -DCMAKE_BUILD_TYPE="$BUILD_TYPE" -DCMAKE_INSTALL_PREFIX="dist" -S . -B build -G "Ninja"
rm compile_commands.json
cp build/compile_commands.json ./