summaryrefslogtreecommitdiffstats
path: root/cmake/QtPostProcess.cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-05-15 11:37:08 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-05-15 18:56:27 +0200
commite5683c5e5ffe1a260b19f453b03451e48a352a54 (patch)
tree8c1fc8210c22151dbd8ae800414250d95c4ca93c /cmake/QtPostProcess.cmake
parent2b10a192a1b892eb7d67cfb4ac5f1dd6a7f196c9 (diff)
CMake: Add MODULE_INCLUDE_NAME one-value-keyword to qt_add_module
This value is the equivalent of qt_module.prf's MODULE_INCNAME and can be used to specify a name for the module's include subdirectory. The default is Qt<ModuleName>. The include name is stored in the module's target property MODULE_INCLUDE_NAME. Change-Id: Ie6c8f6882ee2c3db78884ae5781593c803be3c05 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtPostProcess.cmake')
-rw-r--r--cmake/QtPostProcess.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/QtPostProcess.cmake b/cmake/QtPostProcess.cmake
index 1434999c06..8fbdf103c3 100644
--- a/cmake/QtPostProcess.cmake
+++ b/cmake/QtPostProcess.cmake
@@ -1,5 +1,4 @@
-function(qt_internal_write_depends_file target)
- set(module Qt${target})
+function(qt_internal_write_depends_file module)
set(outfile "${QT_BUILD_DIR}/${INSTALL_INCLUDEDIR}/${module}/${module}Depends")
message("Generate ${outfile}...")
set(contents "/* This file was generated by cmake with the info from ${module} target. */\n")
@@ -171,7 +170,8 @@ function(qt_internal_create_module_depends_file target)
get_target_property(hasModuleHeaders "${target}" INTERFACE_MODULE_HAS_HEADERS)
if (${hasModuleHeaders})
- qt_internal_write_depends_file("${target}" ${qtdeps})
+ get_target_property(module_include_name "${target}" INTERFACE_MODULE_INCLUDE_NAME)
+ qt_internal_write_depends_file(${module_include_name} ${qtdeps})
endif()
if(third_party_deps OR main_module_tool_deps OR target_deps)