summaryrefslogtreecommitdiffstats
path: root/cmake/QtModuleToolsConfig.cmake.in
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2020-10-27 17:35:58 +0100
committerKai Koehne <kai.koehne@qt.io>2020-10-29 08:53:07 +0100
commit342cc61d3e91424695ad6bc369a4ea59412ee9b8 (patch)
tree5b2756d0eb155b62e940ce293069d44467909782 /cmake/QtModuleToolsConfig.cmake.in
parent7372dde4ec6cb32448ea026f48b5f5ea517f778d (diff)
CMake: Support installing extra cmake files for tools
Add an EXTRA_CMAKE_FILES argument to qt_internal_add_tool() that allows tools to install an additional Macro.cmake file. This is modelled after similar functionality in qt_internal_add_module. Task-number: QTBUG-87870 Change-Id: I80838b8966f1018fdd379b1da877b6bc418de075 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtModuleToolsConfig.cmake.in')
-rw-r--r--cmake/QtModuleToolsConfig.cmake.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/QtModuleToolsConfig.cmake.in b/cmake/QtModuleToolsConfig.cmake.in
index 498c0fca83..a714a7b7f2 100644
--- a/cmake/QtModuleToolsConfig.cmake.in
+++ b/cmake/QtModuleToolsConfig.cmake.in
@@ -15,4 +15,8 @@ if (NOT QT_NO_CREATE_TARGETS)
endif()
endif()
+foreach(extra_cmake_include @extra_cmake_includes@)
+ include("${CMAKE_CURRENT_LIST_DIR}/${extra_cmake_include}")
+endforeach()
+
@extra_cmake_statements@