From 9302945ce35c836f97f50ac78bfb74b45824ca59 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Thu, 3 Apr 2025 15:49:15 +0200 Subject: [PATCH] CMake: Add .js files to Source Files source group In addition to .qml files Pick-to: 6.9 Change-Id: I8df7fd9bc997b888213b14c9de8b8d29ea536c1e Reviewed-by: Joerg Bornemann --- src/corelib/Qt6CoreMacros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake index b9c39d6f003..ec853662b6a 100644 --- a/src/corelib/Qt6CoreMacros.cmake +++ b/src/corelib/Qt6CoreMacros.cmake @@ -893,7 +893,7 @@ function(_qt_internal_finalize_source_groups target) # Include qml files in "Source Files". Can not be done via regex, # due to https://gitlab.kitware.com/cmake/cmake/-/issues/25597 - if(${source_file_path} MATCHES "\\.qml$") + if(${source_file_path} MATCHES "(\\.qml$)|(\\.js$)") source_group("Source Files" FILES ${source_file_path}) endif()