[Interest] how to install QML module with cmake
Alexandru Croitor
alexandru.croitor at qt.io
Thu Aug 15 10:44:37 CEST 2024
Hi,
There is currently no first class support for installing qml modules to be re-used in other projects, as if you were shipping an SDK with custom qml modules.
That is tracked at https://bugreports.qt.io/browse/QTBUG-111946 and is a work-in-progress.
Some experimentation how it can be achieved with the current public APIs is mentioned in a comment of that issue
https://bugreports.qt.io/browse/QTBUG-111946?focusedId=724235&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-724235
If you are not shipping an SDK, but rather want to install just the qml runtime library dependencies along with your project executable,
you can take a look at qt's deployment apis, which should take care of that.
https://doc.qt.io/qt-6/qt-generate-deploy-qml-app-script.html
https://doc.qt.io/qt-6/cmake-deployment.html#deploying-a-qt-quick-application
> On 15. Aug 2024, at 02:34, Stefan Seefeld <stefan at seefeld.name> wrote:
>
> Assume I have built my project, including an invocation to `qt_add_qml_module()`, so my build tree now contains a QML module, which is useable once I adjust my QML import path appropriately.
>
> What is the right incantation to install that QML module, or, for that matter, package it with the rest of the project ?
>
> Thanks,
>
> --
> ...ich hab' noch einen Koffer in Berlin...
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
More information about the Interest
mailing list