4rtzel / cmake-qml-plugin-example

QML plugin example written with CMake
61 stars 16 forks source link
cmake cpp qml qml-plugin qt qt5

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: