diff options
author | Jean-Michaël Celerier <jeanmichael.celerier@gmail.com> | 2019-05-03 16:03:15 +0200 |
---|---|---|
committer | Jean-Michaël Celerier <jean-michael.celerier@kdab.com> | 2019-06-04 10:08:07 +0000 |
commit | 0900298d466e819dd6d8fd39c0be333dc09af189 (patch) | |
tree | 9ced8b95aa4bf26916564426105f841433c73273 /cmake/QtPluginConfig.cmake.in | |
parent | 9e6781b69e19f66cb56b1875c583da4682909a85 (diff) |
cmake: register plug-ins, create dependencies file
This commit introduces infrastructure work to allow static builds of Qt
to handle importing of plug-ins.
Change-Id: Ife0ca3ca7276ea8ec96fe0eb6adf934fad7620ec
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtPluginConfig.cmake.in')
-rw-r--r-- | cmake/QtPluginConfig.cmake.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake/QtPluginConfig.cmake.in b/cmake/QtPluginConfig.cmake.in new file mode 100644 index 0000000000..b212d08764 --- /dev/null +++ b/cmake/QtPluginConfig.cmake.in @@ -0,0 +1,13 @@ +@PACKAGE_INIT@ + +include(CMakeFindDependencyMacro) + +get_filename_component(_import_prefix "${CMAKE_CURRENT_LIST_FILE}" PATH) +get_filename_component(_import_prefix "${_import_prefix}" REALPATH) + +# Find required dependencies, if any. +if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/@target@Dependencies.cmake") + include("${CMAKE_CURRENT_LIST_DIR}/@target@Dependencies.cmake") +endif() + +include("${CMAKE_CURRENT_LIST_DIR}/@target@Targets.cmake") |