QT_HARMONYOS_PACKAGE_SOURCE_DIR

Path to a custom HarmonyOS package template.

This property was introduced in Qt 6.12.

Note: This property is in technology preview and may change in future releases.

Note: This property is used only if targeting the HarmonyOS platform.

Specifies the path to a custom HarmonyOS package template. The template is the HarmonyOS project skeleton that holds the manifest files (app.json5, module.json5), the build profiles, and the application resources.

If this property is not set, a default template bundled with the Qt installation is used. When the property is set, the given directory is used instead. This lets you customize the manifest, resources, or signing configuration of the generated HAP.

set_target_properties(myapp PROPERTIES
    QT_HARMONYOS_PACKAGE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/harmonyos"
)

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.