Add qt standard path for build script
This commit is contained in:
parent
97dc075f73
commit
c69c6ef002
1 changed files with 5 additions and 1 deletions
|
|
@ -41,6 +41,10 @@ if [ -z "${QT_VERSION+x}" ]; then
|
||||||
QT_BIN_DIR=/opt/Qt/$QT_VERSION/gcc_64/bin
|
QT_BIN_DIR=/opt/Qt/$QT_VERSION/gcc_64/bin
|
||||||
elif [ -f $HOME/Qt/$QT_VERSION/gcc_64/bin/qmake ]; then
|
elif [ -f $HOME/Qt/$QT_VERSION/gcc_64/bin/qmake ]; then
|
||||||
QT_BIN_DIR=$HOME/Qt/$QT_VERSION/gcc_64/bin
|
QT_BIN_DIR=$HOME/Qt/$QT_VERSION/gcc_64/bin
|
||||||
|
elif [ -f /usr/lib/qt6/bin/qmake ]; then
|
||||||
|
QT_BIN_DIR=/usr/lib/qt6/bin
|
||||||
|
elif [ -f /usr/lib/x86_64-linux-gnu/qt6/bin/qmake ]; then
|
||||||
|
QT_BIN_DIR=/usr/lib/x86_64-linux-gnu/qt6/bin
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -56,7 +60,7 @@ echo "Building App..."
|
||||||
cd $BUILD_DIR
|
cd $BUILD_DIR
|
||||||
|
|
||||||
$QT_BIN_DIR/qt-cmake -S $PROJECT_DIR
|
$QT_BIN_DIR/qt-cmake -S $PROJECT_DIR
|
||||||
cmake --build . --config release
|
cmake --build . -j --config release
|
||||||
|
|
||||||
# Build and run tests here
|
# Build and run tests here
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue