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 <joerg.bornemann@qt.io>
This commit is contained in:
parent
f302a312dc
commit
9302945ce3
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user