-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from visuve/master
Add support for Qt 6
- Loading branch information
Showing
7 changed files
with
61 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ build_qt5/ | |
build_qt4/ | ||
test_cases/ | ||
docs/ | ||
|
||
.vs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
echo "Trying to autobuild bearparser..." | ||
|
||
#QT check | ||
|
||
QT_VER=$(qmake -v) | ||
str=$QT_VER | ||
substr="Qt version 6" | ||
|
||
echo "$QT_VER" | ||
if [[ $str == *"$substr"* ]]; then | ||
echo "[+] Qt6 found!" | ||
else | ||
str2=$(whereis qt6) | ||
substr2="/qt6" | ||
if [[ $str2 == *"$substr2"* ]]; then | ||
echo "[+] Qt6 found!" | ||
else | ||
echo "Install Qt6 SDK first" | ||
exit -1 | ||
fi | ||
fi | ||
|
||
CMAKE_VER=$(cmake --version) | ||
CMAKEV="cmake version" | ||
if echo "$CMAKE_VER" | grep -q "$CMAKEV"; then | ||
echo "[+] CMake found!" | ||
else | ||
echo "[-] CMake NOT found!" | ||
echo "Install cmake first" | ||
exit -1 | ||
fi | ||
|
||
BUILD_DIR=build | ||
|
||
mkdir $BUILD_DIR | ||
echo "[+] build directory created" | ||
cd $BUILD_DIR | ||
cmake -G "CodeLite - Unix Makefiles" -DUSE_QT4=OFF -DCMAKE_INSTALL_PREFIX:PATH=$(pwd) .. | ||
cmake --build . --target install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters