mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
22 lines
433 B
Bash
Executable File
22 lines
433 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
|
cd "$script_dir"
|
|
|
|
if [ ! -f "CMakePresets.json" ]; then
|
|
echo "Error: CMakePresets.json not found"
|
|
exit 1
|
|
fi
|
|
|
|
# Default to debug build
|
|
preset=${1:-debug}
|
|
|
|
echo "Configuring with preset: $preset"
|
|
cmake --preset=$preset
|
|
|
|
echo "Building..."
|
|
cmake --build --preset=$preset
|
|
|
|
echo "Build complete!"
|
|
echo "Examples are in build/$preset/" |