add info checker.
This commit is contained in:
@@ -2,13 +2,7 @@
|
||||
|
||||
base_path=$(pwd)
|
||||
build_path=${base_path}/build
|
||||
libraries_root="/opt/Libraries"
|
||||
|
||||
if command -v cmake >/dev/null 2>&1; then
|
||||
cmake_exe=cmake
|
||||
else
|
||||
cmake_exe=/opt/Qt/Tools/CMake/bin/cmake
|
||||
fi
|
||||
libraries_root="/opt/3rdparty"
|
||||
|
||||
function cmake_scan() {
|
||||
echo "scanning the project..."
|
||||
@@ -16,7 +10,7 @@ function cmake_scan() {
|
||||
mkdir -p ${build_path}
|
||||
fi
|
||||
cd ${build_path}
|
||||
${cmake_exe} -G Ninja -S ${base_path} -B ${build_path} \
|
||||
cmake -G Ninja -S ${base_path} -B ${build_path} \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DMbedTLS_DIR=${libraries_root}/mbedtls-3.6.5/lib/cmake/MbedTLS \
|
||||
-Dnng_DIR=${libraries_root}/nng-1.11/lib/cmake/nng \
|
||||
@@ -31,7 +25,7 @@ function build() {
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
${cmake_exe} --build ${build_path} --target all
|
||||
cmake --build ${build_path} --target all
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user