Import custom QML item from external library (cmake)
I created a library with some QML items.
From application main.cpp file which uses that library I can load those items by:
qmlRegisterType<MyClassCpp>("MyClass", 1, 0, "MyItem1");
Then they can be used in QML files through
But how to avoid loading all those items from main.cpp, and just import them in QML.
But I dont know how to do this with cmake.