qtdeclarative/examples/qml/tutorials/extending-qml
Craig Scott 1c4ba17015 Refactor and update qml CMake API
The existing CMake API for qml modules had a number of
shortcomings. Refactor it to achieve the following:

- Clearly separate public and internal aspects.
- Re-use code from qtbase for adding plugins and module
  targets rather than reimplementing close variations.
- Provide more robust and complete support for qmllint,
  qmlcachegen and automatic generation of qmldir files.
- Reduce the steps needed for more common scenarios.
- Encourage the use of separate backing library and plugin
  targets.
- Automatically generate the plugin class .cpp file where
  possible.
- Specify .qml files directly through qml-specific API
  elements rather than assuming they can be extracted
  out of a set of resources.

[ChangeLog][QtQml] The qml CMake API has changed from 6.1
and is now out of Technical Preview status. The most
notable change is that .qml files should no longer be
specified as resources, there is dedicated handling for
them in the qt6_add_qml_module(). A related change is
that the qt6_target_qml_files() command has been replaced
by qt6_target_qml_sources(). More complete integration
with qmlcachegen, qmllint and qmldir generation is also
part of the CMake API.

Fixes: QTBUG-91621
Task-number: QTBUG-82598
Task-number: QTBUG-88763
Task-number: QTBUG-89274
Task-number: QTBUG-91444
Change-Id: I25aae1b0e89890394dfe2ba2824008164b2ca8d9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2021-06-04 16:54:52 +10:00
..
chapter1-basics CMake: Regenerate examples to set the WIN32_EXECUTABLE property 2020-10-26 23:38:39 +01:00
chapter2-methods CMake: Regenerate examples to set the WIN32_EXECUTABLE property 2020-10-26 23:38:39 +01:00
chapter3-bindings CMake: Regenerate examples to set the WIN32_EXECUTABLE property 2020-10-26 23:38:39 +01:00
chapter4-customPropertyTypes CMake: Regenerate examples to set the WIN32_EXECUTABLE property 2020-10-26 23:38:39 +01:00
chapter5-listproperties CMake: Regenerate examples to set the WIN32_EXECUTABLE property 2020-10-26 23:38:39 +01:00
chapter6-plugins Refactor and update qml CMake API 2021-06-04 16:54:52 +10:00
.prev_CMakeLists.txt Convert Examples 2019-08-23 13:51:06 +00:00
CMakeLists.txt Switch examples to build as isolated sub-builds 2021-05-27 21:08:14 +10:00
extending-qml.pro Doc: Combine the extending QML tutorial chapters into a single example 2014-09-30 12:33:22 +02:00