Skip to content

Commit

Permalink
Version 1.4.0. Support for Qt 5 and 6.
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles PIGNEROL committed Dec 13, 2023
1 parent c0f8dd5 commit 85aee5a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
19 changes: 19 additions & 0 deletions cmake/common_qt.cmake
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 ( )

4 changes: 2 additions & 2 deletions cmake/version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
#

set (GUI_TOOLKITS_VARIABLES_MAJOR_VERSION "1")
set (GUI_TOOLKITS_VARIABLES_MINOR_VERSION "3")
set (GUI_TOOLKITS_VARIABLES_RELEASE_VERSION "3")
set (GUI_TOOLKITS_VARIABLES_MINOR_VERSION "4")
set (GUI_TOOLKITS_VARIABLES_RELEASE_VERSION "0")
set (GUI_TOOLKITS_VARIABLES_VERSION ${GUI_TOOLKITS_VARIABLES_MAJOR_VERSION}.${GUI_TOOLKITS_VARIABLES_MINOR_VERSION}.${GUI_TOOLKITS_VARIABLES_RELEASE_VERSION})
7 changes: 7 additions & 0 deletions versions.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Version 1.4.0 : 13/12/23
===============

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.
Permet d'assurer la compatibilité Qt 5 et 6 au sein d'un projet.


Version 1.3.1 : 18/07/23
===============

Expand Down

0 comments on commit 85aee5a

Please sign in to comment.