make_all_examples 324 Bytes
Newer Older
gejun's avatar
gejun committed
1
saved_pwd_before_making=$PWD
2
for file in `find tools example -name CMakeFiles -type d -prune -o -name CMakeLists.txt -print`; do
gejun's avatar
gejun committed
3
    cd $(dirname $file)
4 5
    echo
    echo "[$file]"
6
    if ! ( rm -rf build && mkdir build && cd build && cmake .. && make -sj4 ); then
7 8
        exit 1
    fi
gejun's avatar
gejun committed
9 10
    cd $saved_pwd_before_making
done