build_cmake_release.sh 354 Bytes
Newer Older
1 2 3 4
#!/usr/bin/env bash

mkdir cmake-build-release
cd cmake-build-release
5
cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DTHREAD_SANITIZER=OFF
6 7
make

8 9 10 11 12 13 14
rm -r -f ../release
mkdir ../release
cp -r bin/ ../release/bin
cp -r lib/ ../release/lib
cp -r ../lib/pls/include/ ../release/include/
rm -f -r ../release/lib/pls

15 16
# echo the result of make to show it in gitlab
exit $?