Compile qml into a CMake object library?
Unsolved
Qt 6
-
Is there a way to compile qml into a CMake object library with the Qt6 CMake API? My understanding is the only way to compile qml with Qt6 and CMake is to use qt_add_qml_module(). However, that CMake function does not accept OBJECT as a library type.
CMake Error at C:/Qt/6.2.4/qnx71_armv7/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:200 (message): Unsupported backing target type: OBJECT_LIBRARY
I'm hoping there is some other way to accomplish this if qt_add_qml_module() can't.