Commit a93435fb authored by zhujiashun's avatar zhujiashun

add purpose to cmake

parent 902ad481
......@@ -26,10 +26,15 @@ fi
echo "start building by cmake"
rm -rf build && mkdir build && cd build
if ! cmake -DBRPC_DEBUG=OFF -BUILD_EXAMPLE=ON -BUILD_UNIT_TESTS=ON ..; then
if ! cmake -DBRPC_DEBUG=OFF -BUILD_EXAMPLE=ON -BUILD_UNIT_TESTS=OFF ..; then
echo "Fail to generate Makefile by cmake"
exit 1
fi
#todo: add test
if [ "$PURPOSE" = "compile" ]; then
make -j4
elif [ "$PURPOSE" = "unittest" ]; then
echo "todo"
else
echo "Unknown purpose=\"$PURPOSE\""
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment