cmake-qml-plugin-example
cmake-qml-plugin-example copied to clipboard
QML plugin example written with CMake
CMake QML plugin example
QML plugin example written with CMake.
Description
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 structure
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.