diff options
author | Eike Ziller <[email protected]> | 2025-04-03 15:49:15 +0200 |
---|---|---|
committer | Eike Ziller <[email protected]> | 2025-04-04 10:59:34 +0000 |
commit | 9302945ce35c836f97f50ac78bfb74b45824ca59 (patch) | |
tree | d66b31e11cac19209e61e859e23c3f491aaab113 | |
parent | f302a312dcf1005e147193e12fbfc4677aa7af30 (diff) |
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 <[email protected]>
-rw-r--r-- | src/corelib/Qt6CoreMacros.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
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() |