-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 1.4.0. Support for Qt 5 and 6.
- Loading branch information
Charles PIGNEROL
committed
Dec 13, 2023
1 parent
c0f8dd5
commit 85aee5a
Showing
3 changed files
with
28 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
set (QT_5 OFF) | ||
set (QT_6 OFF) | ||
unset (QT_MAJOR) | ||
if (Qt6_DIR OR Qt6_ROOT) | ||
find_package (Qt6 REQUIRED COMPONENTS Core) | ||
if (Qt6_FOUND) | ||
set (QT_6 ON) | ||
set (QT_MAJOR 6) | ||
endif (Qt6_FOUND) | ||
elseif (Qt5_DIR OR Qt5_ROOT) | ||
find_package (Qt5 REQUIRED COMPONENTS Core) | ||
if (Qt5_FOUND) | ||
set (QT_5 ON) | ||
set (QT_MAJOR 5) | ||
endif (Qt5_FOUND) | ||
else ( ) | ||
message (FATAL_ERROR "Version majeure de Qt non gérée.") | ||
endif ( ) | ||
|
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