Files
rapidyaml/samples/singleheaderlib-ints/run_static.sh
Joao Paulo Magalhaes 0fcfa3ef21 Update samples
2025-09-29 00:01:36 +01:00

11 lines
354 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-static -DCMAKE_BUILD_TYPE=$cfg -DBUILD_SHARED_LIBS=OFF
# build and run the sample
cmake --build ./build/$cfg-static --config $cfg --target run