From 0b0779de3dc5e64fdee2d46947e4a0282d23757b Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Mon, 18 Dec 2017 01:34:50 +0100 Subject: [PATCH] Export the AppStreamQt target Otherwise it only works if it's installed in /usr as a prefix (where it's a default) --- qt/AppStreamQtConfig.cmake.in | 5 ----- qt/cmake/AppStreamQtConfig.cmake.in | 8 ++++++++ 2 files changed, 8 insertions(+), 5 deletions(-) delete mode 100644 qt/AppStreamQtConfig.cmake.in diff --git a/qt/AppStreamQtConfig.cmake.in b/qt/AppStreamQtConfig.cmake.in deleted file mode 100644 index 10604f7c..00000000 --- a/qt/AppStreamQtConfig.cmake.in +++ /dev/null @@ -1,5 +0,0 @@ -@PACKAGE_INIT@ - -check_required_components(Qt5Core) - -include("${CMAKE_CURRENT_LIST_DIR}/AppStreamQtTargets.cmake") diff --git a/qt/cmake/AppStreamQtConfig.cmake.in b/qt/cmake/AppStreamQtConfig.cmake.in index d3f37559..aa61e820 100644 --- a/qt/cmake/AppStreamQtConfig.cmake.in +++ b/qt/cmake/AppStreamQtConfig.cmake.in @@ -28,6 +28,14 @@ macro(check_required_components _NAME) endforeach() endmacro() +add_library(AppStreamQt SHARED IMPORTED) +set_target_properties(AppStreamQt PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES "${PACKAGE_PREFIX_DIR}/include/" + INTERFACE_LINK_LIBRARIES "Qt5::Core" + IMPORTED_LOCATION_DEBUG "@LIBDIR_FULL@/libAppStreamQt.so.${AppStreamQt_VERSION}" + IMPORTED_SONAME_DEBUG "libAppStreamQt.${AppStreamQt_VERSION_MAJOR}" +) + #################################################################################### check_required_components(Qt5Core)