QT_HARMONYOS_EXTRA_LIBS
Extra libraries to deploy with the HarmonyOS target.
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.
A list of external shared libraries that are packaged into the HAP so that the dynamic linker can find them at run time. Use it for libraries that are not detected automatically as dependencies of the application.
Each list entry is either the name of a CMake target (which is resolved to the target's output file) or a file path or generator expression that evaluates to such a path.
set_target_properties(myapp PROPERTIES
QT_HARMONYOS_EXTRA_LIBS
"MyService;${CMAKE_CURRENT_BINARY_DIR}/libOther.so"
)Shared libraries that the target links against directly are collected automatically and do not need to be listed here.
When adding a library that is built as part of your project, also add a build dependency so that the library is available before the target is deployed:
add_dependencies(myapp MyService)© 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.