aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/GpgmeppConfig.cmake.in.in
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-03-08 13:33:15 +0000
committerAndre Heinecke <[email protected]>2016-03-08 14:37:10 +0000
commit8347f3d5fc3e476aa767fbbaf09a1310a6154280 (patch)
tree28084d7c1bec173723700b32fe959504da4b26a5 /lang/cpp/src/GpgmeppConfig.cmake.in.in
parentRemove obsolete w32-qt code (diff)
downloadgpgme-8347f3d5fc3e476aa767fbbaf09a1310a6154280.tar.gz
gpgme-8347f3d5fc3e476aa767fbbaf09a1310a6154280.zip
Add qgpgme as qt language binding
* configure.ac: Add version defines. Check for qt if neccessary. * lang/README: Mention qt * lang/cpp/src/GpgmeppConfig.cmake.in.in: Remove comment. Find qgpgme. * lang/qt/src/Makefile.am: New. Build qgpgme. * lang/qt/README, lang/qt/src/Makefile.am, lang/qt/src/QGpgmeConfig.cmake.in.in, lang/qt/src/QGpgmeConfigVersion.cmake.in, lang/qt/src/dataprovider.cpp, lang/qt/src/dataprovider.h, lang/qt/src/qgpgme_export.h, m4/qt.m4: New. * lang/cpp/src/GpgmeppConfig.cmake.in.in, lang/cpp/src/Makefile.am: Fix generated config file. -- For now this is just the dataprovider which was part of the KF5 Gpgmepp QGpgme variant. This is very thin but a useful class which is used downstream.
Diffstat (limited to 'lang/cpp/src/GpgmeppConfig.cmake.in.in')
-rw-r--r--lang/cpp/src/GpgmeppConfig.cmake.in.in21
1 files changed, 7 insertions, 14 deletions
diff --git a/lang/cpp/src/GpgmeppConfig.cmake.in.in b/lang/cpp/src/GpgmeppConfig.cmake.in.in
index 4b5b905b..51218c62 100644
--- a/lang/cpp/src/GpgmeppConfig.cmake.in.in
+++ b/lang/cpp/src/GpgmeppConfig.cmake.in.in
@@ -37,7 +37,7 @@ set(CMAKE_IMPORT_FILE_VERSION 1)
set(_targetsDefined)
set(_targetsNotDefined)
set(_expectedTargets)
-foreach(_expectedTarget KF5::Gpgmepp KF5::QGpgme)
+foreach(_expectedTarget KF5::Gpgmepp Gpgmepp)
list(APPEND _expectedTargets ${_expectedTarget})
if(NOT TARGET ${_expectedTarget})
list(APPEND _targetsNotDefined ${_expectedTarget})
@@ -69,18 +69,10 @@ add_library(Gpgmepp SHARED IMPORTED)
set_target_properties(Gpgmepp PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/gpgme++"
- INTERFACE_LINK_LIBRARIES "@libdir@/libgpgme.dll.a;@LIBASSUAN_LIBS@;@GPG_ERROR_LIBS@"
+ INTERFACE_LINK_LIBRARIES "@resolved_libdir@/libgpgme@libsuffix@;@LIBASSUAN_LIBS@;@GPG_ERROR_LIBS@"
+ IMPORTED_LOCATION "@resolved_libdir@/libgpgmepp@libsuffix@"
)
-# Create imported target QGpgme
-#add_library(QGpgme SHARED IMPORTED)
-
-#set_target_properties(KF5::QGpgme PROPERTIES
-# INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/qgpgme"
- # INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX} TODO"
-# INTERFACE_LINK_LIBRARIES "Qt5::Core"
-#)
-
if(CMAKE_VERSION VERSION_LESS 2.8.12)
message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
endif()
@@ -107,9 +99,10 @@ but not all the files it references.
endforeach()
unset(_IMPORT_CHECK_TARGETS)
-# This file does not depend on other imported targets which have
-# been exported from the same project but in a separate export set.
-
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)
+
+get_filename_component(QGpgme_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+# Pull in QGpgme for compatibility with KF5 variant.
+find_package(QGpgme CONFIG)