Skip to content

Use new CMake API

Thiago Sueto requested to merge work/thiagosueto/qmlmodule into master

This MR does three things:

  • Makes QML modules more... modular
  • Ports from ecm_add_qml_module to qt_add_qml_module
  • Ports from a resources file to qt_add_resources

I couldn't make this setup work with ecm_add_qml_module(). It complains about STATIC and SHARED being used at the same time, which I have no idea how to deal with. Additionally, it doesn't need linking, yet fails to find the QML modules.

With qt_add_qml_module() a module adding QML files to a target has to be shared while its plugin dependencies need to be statically linked, hence why qml/CMakeLists.txt doesn't have STATIC.

This has yet to be properly tested, especially on mobile.

Merge request reports