Files
rapidyaml/samples/add_subdirectory/run.sh
Joao Paulo Magalhaes 072822377c wip [ci skip]
2026-01-11 14:13:07 +00:00

11 lines
327 B
Bash
Executable File

#!/bin/bash -x
# take the build type from the command line, or default to release
cfg=${1:-Release}
# make sure to run from where this file is
cd $(dirname $0)
# configure the sample
cmake -S . -B ./build/$cfg -DCMAKE_BUILD_TYPE=$cfg
# build and run the sample
cmake --build ./build/$cfg --config $cfg --parallel --target run