aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/QGpgmeQt6ConfigVersion.cmake.in
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2022-10-11 08:14:53 +0000
committerIngo Klöcker <[email protected]>2022-10-11 09:00:14 +0000
commit8d019bbb8d40de2cbed7ad6d3367c6a46a561fab (patch)
tree5baa88dc77a099da27e54c85fcd0bf4ff9fa6f9b /lang/qt/src/QGpgmeQt6ConfigVersion.cmake.in
parentbuild,qt: Explicitly namespace a few Qt variables for Qt5 (diff)
downloadgpgme-8d019bbb8d40de2cbed7ad6d3367c6a46a561fab.tar.gz
gpgme-8d019bbb8d40de2cbed7ad6d3367c6a46a561fab.zip
build,qt: Allow building QGpgME for Qt 6
* configure.ac: Look for Qt 5 and/or Qt 6. Require C++17 if Qt 6 binding is built. Build cmake files QGpgmeConfig* for Qt 5 and QGpgmeQt6Config* for Qt 6. (available_languages): Add "qt5" and "qt6". (WANT_QT5, WANT_QT6): New conditionals. * lang/qt/src/Makefile.am: Keep building libqgpgme for Qt 5. Build libqgpgmeqt6 for Qt 6. * lang/qt/tests/Makefile.am: Build tests for Qt 5 or Qt 6. * lang/qt/src/QGpgmeQt6Config-w32.cmake.in.in, lang/qt/src/QGpgmeQt6Config.cmake.in.in, lang/qt/src/QGpgmeQt6ConfigVersion.cmake.in, m4/qt6.m4: New. -- This makes it possible to build QGpgME optionally for Qt 6.4.0 or later. By default or if the language "qt" is enabled, then QGpgME is built either for Qt 5 (if found) or Qt 6. A build for Qt 5 or Qt 6 can be requested by explicitly enabling the language "qt5" or "qt6". Building QGpgME for Qt 5 and Qt 6 simultaneously is not supported.
Diffstat (limited to '')
-rw-r--r--lang/qt/src/QGpgmeQt6ConfigVersion.cmake.in31
1 files changed, 31 insertions, 0 deletions
diff --git a/lang/qt/src/QGpgmeQt6ConfigVersion.cmake.in b/lang/qt/src/QGpgmeQt6ConfigVersion.cmake.in
new file mode 100644
index 00000000..eaa60dc8
--- /dev/null
+++ b/lang/qt/src/QGpgmeQt6ConfigVersion.cmake.in
@@ -0,0 +1,31 @@
+# CMake Version file for QGpgME for Qt 6
+# Copyright (C) 2016 Intevation GmbH
+#
+# This file is part of GPGME.
+#
+# QGpgME is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# QGpgME is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA
+
+# based on a generated file from cmake.
+set(PACKAGE_VERSION "@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_MICRO@")
+
+if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" )
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
+else()
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
+ if("${PACKAGE_FIND_VERSION}" STREQUAL "${PACKAGE_VERSION}")
+ set(PACKAGE_VERSION_EXACT TRUE)
+ endif()
+endif()