Skip to content

Commit 85aee5a

Browse files
author
Charles PIGNEROL
committed
Version 1.4.0. Support for Qt 5 and 6.
1 parent c0f8dd5 commit 85aee5a

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

cmake/common_qt.cmake

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
set (QT_5 OFF)
2+
set (QT_6 OFF)
3+
unset (QT_MAJOR)
4+
if (Qt6_DIR OR Qt6_ROOT)
5+
find_package (Qt6 REQUIRED COMPONENTS Core)
6+
if (Qt6_FOUND)
7+
set (QT_6 ON)
8+
set (QT_MAJOR 6)
9+
endif (Qt6_FOUND)
10+
elseif (Qt5_DIR OR Qt5_ROOT)
11+
find_package (Qt5 REQUIRED COMPONENTS Core)
12+
if (Qt5_FOUND)
13+
set (QT_5 ON)
14+
set (QT_MAJOR 5)
15+
endif (Qt5_FOUND)
16+
else ( )
17+
message (FATAL_ERROR "Version majeure de Qt non gérée.")
18+
endif ( )
19+

cmake/version.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
#
44

55
set (GUI_TOOLKITS_VARIABLES_MAJOR_VERSION "1")
6-
set (GUI_TOOLKITS_VARIABLES_MINOR_VERSION "3")
7-
set (GUI_TOOLKITS_VARIABLES_RELEASE_VERSION "3")
6+
set (GUI_TOOLKITS_VARIABLES_MINOR_VERSION "4")
7+
set (GUI_TOOLKITS_VARIABLES_RELEASE_VERSION "0")
88
set (GUI_TOOLKITS_VARIABLES_VERSION ${GUI_TOOLKITS_VARIABLES_MAJOR_VERSION}.${GUI_TOOLKITS_VARIABLES_MINOR_VERSION}.${GUI_TOOLKITS_VARIABLES_RELEASE_VERSION})

versions.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Version 1.4.0 : 13/12/23
2+
===============
3+
4+
cmake/common_qt.cmake : support de différentes versions de Qt. Utilise (Qt*_DIR OR Qt*_ROOT) pour déterminer la version utilisée de Qt.
5+
Permet d'assurer la compatibilité Qt 5 et 6 au sein d'un projet.
6+
7+
18
Version 1.3.1 : 18/07/23
29
===============
310

0 commit comments

Comments
 (0)