aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/ryml/samples/add_subdirectory/run.sh
blob: fc2f7d858966fb54931cea34dd86d2c031dd55e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/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 --target run