build
This commit is contained in:
parent
3a340d6098
commit
79dfad0f99
|
@ -0,0 +1,25 @@
|
||||||
|
script_dir=$(cd $(dirname $0);pwd)
|
||||||
|
cd $script_dir
|
||||||
|
echo $script_dir
|
||||||
|
|
||||||
|
if [ -f ./build/CMakeCache.txt ]; then
|
||||||
|
echo ""
|
||||||
|
#rm -rf ./build/*
|
||||||
|
else
|
||||||
|
mkdir build
|
||||||
|
fi
|
||||||
|
pwd
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make -j6
|
||||||
|
|
||||||
|
if [ $? -ne 0 ];then
|
||||||
|
|
||||||
|
err=1
|
||||||
|
echo "--------------------------------------make fail---------------------------------------"
|
||||||
|
# commented, we should restore the CMakeLists.txts...
|
||||||
|
else
|
||||||
|
err=0
|
||||||
|
echo "--------------------------------------make succeed------------------------------------"
|
||||||
|
fi
|
||||||
|
exit $err
|
Loading…
Reference in New Issue