From 30efb24d45e61f3329484c8dd416ee6cde25739b Mon Sep 17 00:00:00 2001 From: Xavier BESSON Date: Mon, 19 Dec 2022 17:59:54 +0100 Subject: [PATCH] CMake: Expose generated resource files to IDEs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add generated qrc files to source of the target so they will be displayed (and reachable by Follow Symbol in QtCreator) under the '/.rcc' node in the Project Tree of QtCreator. Fixes: QTCREATORBUG-28604 Change-Id: I0c56e168de03027ec2981cfa0bceb8f10a8d71b2 Reviewed-by: Jörg Bornemann --- src/corelib/Qt6CoreMacros.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake index fdea5d6324..08ad99ecb9 100644 --- a/src/corelib/Qt6CoreMacros.cmake +++ b/src/corelib/Qt6CoreMacros.cmake @@ -1864,6 +1864,7 @@ function(_qt_internal_process_resource target resourceName) return() endif() set(generatedResourceFile "${CMAKE_CURRENT_BINARY_DIR}/.rcc/${resourceName}.qrc") + _qt_internal_expose_source_file_to_ide(${target} ${generatedResourceFile}) # Generate .qrc file: