aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/ryml/samples/singleheaderlib/run_static.sh
blob: d0e570215445c34c0de28eafa53c6c96ea29a7a0 (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-static -DCMAKE_BUILD_TYPE=$cfg -DBUILD_SHARED_LIBS=OFF
# build and run the sample
cmake --build ./build/$cfg-static --config $cfg --target run