From 08a65966af9e5f6a70eb64add9cd83a81b445215 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 Change-Id: I8df7fd9bc997b888213b14c9de8b8d29ea536c1e Reviewed-by: Joerg Bornemann (cherry picked from commit 9302945ce35c836f97f50ac78bfb74b45824ca59) Reviewed-by: Qt Cherry-pick Bot --- 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 1164091a85b..1125097f977 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()