mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 00:07:24 +00:00
possibility to select qt dir on linux build script
This commit is contained in:
parent
1e51f5c65c
commit
54b0013377
@ -19,6 +19,7 @@ INSTALL_PATH=$SOURCE_PATH/install/usr/
|
||||
CORES="-j4"
|
||||
DOUBLE_PRECISION_OPTION=""
|
||||
NIGHTLY_OPTION=""
|
||||
QT_DIR=""
|
||||
|
||||
#check parameters
|
||||
for i in "$@"
|
||||
@ -44,6 +45,10 @@ case $i in
|
||||
NIGHTLY_OPTION="-DMESHLAB_IS_NIGHTLY_VERSION=ON"
|
||||
shift # past argument=value
|
||||
;;
|
||||
-qt=*|--qt_dir=*)
|
||||
QT_DIR=${i#*=}
|
||||
shift # past argument=value
|
||||
;;
|
||||
*)
|
||||
# unknown option
|
||||
;;
|
||||
@ -66,6 +71,10 @@ BUILD_PATH=$(realpath $BUILD_PATH)
|
||||
INSTALL_PATH=$(realpath $INSTALL_PATH)
|
||||
|
||||
cd $BUILD_PATH
|
||||
if [ ! -z "$QT_DIR" ]
|
||||
then
|
||||
export Qt5_DIR=$QT_DIR
|
||||
fi
|
||||
cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $DOUBLE_PRECISION_OPTION $NIGHTLY_OPTION $SOURCE_PATH
|
||||
make $CORES
|
||||
make install
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user