build.sh | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
build.sh
@@ -1,21 +1,38 @@ #! /bin/bash [ -d build ] || mkdir build # rm -rf build/* cd build BUILD_TYPE="Debug" function usage() { echo "build.sh [release | debug]" } case ${1} in "release") BUILD_TYPE="Release" ;; "debug") BUILD_TYPE="Debug" ;; "") BUILD_TYPE="Debug" ;; *) BUILD_TYPE="Debug" echo "Invalid Argument." usage ;; esac [ -d build ] || mkdir build # rm -rf build/* cd build # -DCMAKE_BUILD_TYPE=Debug | Release # -DBUILD_SHARED_LIBS=ON # -DCMAKE_INSTALL_PREFIX=$(pwd/../dest)