QML plugin example written with CMake.
There is a good tutorials and examples (1, 2, 3) how to write a QML module with qmake but there is not a lot of examples how to do it with CMake.
This project show how to create a basic CMake QML plugin that exports C++ class, QML file and js file to QML engine.
Project consists of two CMake targets:
- application target - main application target that will use plugin target.
- plugin target - plugin target that exports C++ class alongside with resources.