Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Equivalent of CONFIG+=qmltypes in CMake build?
Diracsbracket last edited by Diracsbracket
I just found out about the new way to expose C++ types to QML using the
QML_ELEMENTmacro, as described e.g. here.
To test it with CMake builds, I converted the
to a CMake project.
While it runs fine when using the old way of registering the type with
qmlRegisterType<Person>("People", 1,0, "Person");
it fails when commenting that line out (and uncommenting the
QQmlComponent: Component is not ready (qrc:example.qml:52:1: module "People" is not installed import People 1.0 ^)
I assume it has to do with not having used the CMake equivalent of the following
But, what is the CMake equivalent of the above
Thanks for your help!