CMake: Generate QML deploy imports for module-library apps


_qt_internal_generate_deploy_qml_imports_script only handled
EXECUTABLE targets. On Android and HarmonyOS, applications are built
as module libraries, so the per-target deploy_qml_imports script was
never generated and qt6_deploy_qml_imports() failed with "No QML
imports information recorded for target".

Also accept module-library targets that are marked as an application
via _qt_android_target_type or _qt_harmonyos_target_type.

Pick-to: 6.12
Change-Id: I55c74f66c6f1997ad44c6e9c321eaf6e4c880432
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
commit94f4a2bcbbb7cf79598dc6b4c93e7eb8d338cdbd
parent1feb1384a73632c893f421d315953e998a5dcda2
authorJoerg Bornemann <joerg.bornemann@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeFri, 9 Oct 2026 17:56:04 +0000