Scripts/cmake-build.sh: Build out of tree

By default CMake dumps all the build artifact in the root directory
of the project. The script now builds everything in `_Build`.
This commit is contained in:
Erik de Castro Lopo 2017-04-09 15:27:55 +10:00
parent 7c402ad94b
commit e6474576e5

View File

@ -1,9 +1,9 @@
#!/bin/bash -e
#!/bin/bash -eu
rm -rf CMakeCache.txt CMakeFiles/
rm -rf CMakeCache.txt CMakeFiles/ _Build
cmake -DWerror=on -Werror=dev -Werror=deprecated .
make clean
make
make check
mkdir _Build
cd _Build
cmake ..
cmake --build .
ctest -V