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>