CMake: Add .js files to Source Files source group
In addition to .qml files Change-Id: I8df7fd9bc997b888213b14c9de8b8d29ea536c1e Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 9302945ce35c836f97f50ac78bfb74b45824ca59) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
1432788a12
commit
08a65966af
@ -893,7 +893,7 @@ function(_qt_internal_finalize_source_groups target)
|
|||||||
|
|
||||||
# Include qml files in "Source Files". Can not be done via regex,
|
# Include qml files in "Source Files". Can not be done via regex,
|
||||||
# due to https://gitlab.kitware.com/cmake/cmake/-/issues/25597
|
# 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})
|
source_group("Source Files" FILES ${source_file_path})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user