Deploying QML shared library with qt_generate_deploy_qml_app_script
-
I am trying to build and deploy a shared library with cmake via qt_generate_deploy_qml_app_script.
Everything is fine until I run cmake --install. I get this:
No QML imports information recorded for target vulkanunderqml. The target
must be an executable and qt_add_qml_module() must have been called with
it. If using a CMake version lower than 3.19, ensure that the executable
is manually finalized with qt_finalize_target(). Missing file:
/media/voracity/volume_d/gitroot/player/qtplayerbindings/src/vulkanunderqml/player-build/.qt/deploy_qml_imports/vulkanunderqml.cmake
Call Stack (most recent call first):
.qt/deploy_qml_app_vulkanunderqml_02b1c1c4bb.cmake:5 (qt_deploy_qml_imports)
cmake_install.cmake:69 (include)It says "The target must be an executable" and considering I ran the cmake file with an executable target and it worked I am now stuck wondering why doesn't it work with a shared library as a target and is there an alternative? Another thing to note is that qt_generate_deploy_app_script works perfectly fine.