From e5683c5e5ffe1a260b19f453b03451e48a352a54 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Fri, 15 May 2020 11:37:08 +0200 Subject: 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. The include name is stored in the module's target property MODULE_INCLUDE_NAME. Change-Id: Ie6c8f6882ee2c3db78884ae5781593c803be3c05 Reviewed-by: Alexandru Croitor --- cmake/QtPostProcess.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmake/QtPostProcess.cmake') 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) -- cgit v1.2.3