summaryrefslogtreecommitdiffstats
path: root/cmake/QtBaseGlobalTargets.cmake
diff options
context:
space:
mode:
authorKevin Funk <kevin.funk@kdab.com>2019-05-03 12:30:09 +0200
committerKevin Funk <kevin.funk@kdab.com>2019-05-03 13:51:02 +0000
commitaef11e420db95a5dd42faa314f9afe69e890ee8d (patch)
tree54d64c4660afaf4e8d9f6df960f237a8b593a8cf /cmake/QtBaseGlobalTargets.cmake
parentf2bb48e635779b730750b83a28b82b645959e764 (diff)
cmake: Generate config files with Qt:: prefix
Generate CMake config files which export Qt targets with a Qt:: prefix (i.e. without a major version suffix in the namespace) Change-Id: Ia07f98be6d0e24c196e3880b7469f1f0c6232c06 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtBaseGlobalTargets.cmake')
-rw-r--r--cmake/QtBaseGlobalTargets.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/QtBaseGlobalTargets.cmake b/cmake/QtBaseGlobalTargets.cmake
index b4c4bd0298..af320a05b3 100644
--- a/cmake/QtBaseGlobalTargets.cmake
+++ b/cmake/QtBaseGlobalTargets.cmake
@@ -80,6 +80,10 @@ install(TARGETS Platform GlobalConfig GlobalConfigPrivate EXPORT "${INSTALL_CMAK
install(EXPORT "${INSTALL_CMAKE_NAMESPACE}Targets" NAMESPACE ${QT_CMAKE_EXPORT_NAMESPACE}:: DESTINATION "${config_install_dir}")
export(EXPORT "${INSTALL_CMAKE_NAMESPACE}Targets")
+qt_internal_export_modern_cmake_config_targets_file(TARGETS Platform GlobalConfig GlobalConfigPrivate
+ EXPORT_NAME_PREFIX ${INSTALL_CMAKE_NAMESPACE}
+ CONFIG_INSTALL_DIR ${config_install_dir})
+
## Install some QtBase specific CMake files:
install(FILES
cmake/QtBuild.cmake