Installing CMake static target with QML module
-
Hi everyone,
I have a static library target with a QML module that works fine in its own project and installs as well. But another project uses the installed library gives an error saying:
Objects of target "QTTest::GuiA_resources_1" referenced but is not one of the allowed target types (EXECUTABLE, STATIC, SHARED, MODULE, OBJECT).
I used the code below to create the qml module and install the target.
qt_add_qml_module(GuiA URI qttest OUTPUT_DIRECTORY qtbin/qttest OUTPUT_TARGETS _qt_output_targets QML_FILES qml/Ascreen.qml ) # Value of the _qt_output_targets = GuiA_resources_1;GuiA_resources_2;GuiA_resources_3;GuiAplugin_init install( TARGETS GuiA ${_qt_output_targets} EXPORT GuiATargets )
What am I doint wrong here?