diff options
| author | Kai Koehne <[email protected]> | 2020-10-27 17:35:58 +0100 |
|---|---|---|
| committer | Kai Koehne <[email protected]> | 2020-10-29 08:53:07 +0100 |
| commit | 342cc61d3e91424695ad6bc369a4ea59412ee9b8 (patch) | |
| tree | 5b2756d0eb155b62e940ce293069d44467909782 /cmake/QtModuleToolsConfig.cmake.in | |
| parent | 7372dde4ec6cb32448ea026f48b5f5ea517f778d (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 <[email protected]>
Diffstat (limited to 'cmake/QtModuleToolsConfig.cmake.in')
| -rw-r--r-- | cmake/QtModuleToolsConfig.cmake.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/QtModuleToolsConfig.cmake.in b/cmake/QtModuleToolsConfig.cmake.in index 498c0fca833..a714a7b7f2e 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@ |
