windeployqt fails to install qml library
-
Hello,
I compiled QtOpcUa module from source.
This also includes a qml library which can be imported asimport QtOpcUa as QtOpcUaWhen running my built app with QtCreator, there is no problem parsing that file.
After installing my application I can not find the QtOpcUa qml library in my deploy folder.
Application CmakeList
# Define target project(Client) qt_add_executable(${PROJECT_NAME} src/main.cpp ) set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_NAME}) qt_add_qml_module(${PROJECT_NAME} URI ${PROJECT_NAME} QML_FILES qml/application.qml # Link against libraries target_link_libraries(${PROJECT_NAME} PRIVATE Qt${QT_MAJOR_VERSION}::Gui Qt${QT_MAJOR_VERSION}::Quick Qt${QT_MAJOR_VERSION}::QuickControls2 Qt${QT_MAJOR_VERSION}::OpcUa ) qt_generate_deploy_qml_app_script( TARGET ${PROJECT_NAME} OUTPUT_SCRIPT deploy_script ) install(SCRIPT ${deploy_script})Deploy folder structure

Inside qml folder (here I would expect QtOpcUa)

If I copy the folder
QT_INSTALL_DIR\6.7.2\msvc2019_64\qml\QtOpcUainto above mentioned directory, everything works fine.Now my question:
How do I describe in CMakeLists that the QtOpcUa folder must be installed also?