aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qml')
-rw-r--r--examples/qml/.prev_CMakeLists.txt12
-rw-r--r--examples/qml/CMakeLists.txt12
-rw-r--r--examples/qml/networkaccessmanagerfactory/CMakeLists.txt48
-rw-r--r--examples/qml/qmlextensionplugins/CMakeLists.txt47
-rw-r--r--examples/qml/referenceexamples/CMakeLists.txt17
-rw-r--r--examples/qml/referenceexamples/adding/CMakeLists.txt51
-rw-r--r--examples/qml/referenceexamples/attached/CMakeLists.txt54
-rw-r--r--examples/qml/referenceexamples/binding/CMakeLists.txt55
-rw-r--r--examples/qml/referenceexamples/coercion/CMakeLists.txt52
-rw-r--r--examples/qml/referenceexamples/default/CMakeLists.txt52
-rw-r--r--examples/qml/referenceexamples/extended/CMakeLists.txt55
-rw-r--r--examples/qml/referenceexamples/grouped/CMakeLists.txt54
-rw-r--r--examples/qml/referenceexamples/methods/CMakeLists.txt52
-rw-r--r--examples/qml/referenceexamples/properties/CMakeLists.txt52
-rw-r--r--examples/qml/referenceexamples/signal/CMakeLists.txt54
-rw-r--r--examples/qml/referenceexamples/valuesource/CMakeLists.txt55
-rw-r--r--examples/qml/shell/CMakeLists.txt29
-rw-r--r--examples/qml/tutorials/CMakeLists.txt5
-rw-r--r--examples/qml/tutorials/extending-qml/.prev_CMakeLists.txt8
-rw-r--r--examples/qml/tutorials/extending-qml/CMakeLists.txt8
-rw-r--r--examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt55
-rw-r--r--examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt55
-rw-r--r--examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt55
-rw-r--r--examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt56
-rw-r--r--examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt56
-rw-r--r--examples/qml/tutorials/extending-qml/chapter6-plugins/.prev_CMakeLists.txt43
-rw-r--r--examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt44
-rw-r--r--examples/qml/tutorials/extending-qml/chapter6-plugins/import/CMakeLists.txt50
-rw-r--r--examples/qml/xmlhttprequest/CMakeLists.txt105
29 files changed, 1291 insertions, 0 deletions
diff --git a/examples/qml/.prev_CMakeLists.txt b/examples/qml/.prev_CMakeLists.txt
new file mode 100644
index 0000000000..0ec4c9b39d
--- /dev/null
+++ b/examples/qml/.prev_CMakeLists.txt
@@ -0,0 +1,12 @@
+# Generated from qml.pro.
+
+add_subdirectory(referenceexamples)
+add_subdirectory(tutorials)
+add_subdirectory(shell)
+if(TARGET Qt::Quick)
+ add_subdirectory(qmlextensionplugins)
+ add_subdirectory(xmlhttprequest)
+endif()
+if(QT_FEATURE_qml_network AND TARGET Qt::Quick)
+ add_subdirectory(networkaccessmanagerfactory)
+endif()
diff --git a/examples/qml/CMakeLists.txt b/examples/qml/CMakeLists.txt
new file mode 100644
index 0000000000..0ec4c9b39d
--- /dev/null
+++ b/examples/qml/CMakeLists.txt
@@ -0,0 +1,12 @@
+# Generated from qml.pro.
+
+add_subdirectory(referenceexamples)
+add_subdirectory(tutorials)
+add_subdirectory(shell)
+if(TARGET Qt::Quick)
+ add_subdirectory(qmlextensionplugins)
+ add_subdirectory(xmlhttprequest)
+endif()
+if(QT_FEATURE_qml_network AND TARGET Qt::Quick)
+ add_subdirectory(networkaccessmanagerfactory)
+endif()
diff --git a/examples/qml/networkaccessmanagerfactory/CMakeLists.txt b/examples/qml/networkaccessmanagerfactory/CMakeLists.txt
new file mode 100644
index 0000000000..2d0821b40e
--- /dev/null
+++ b/examples/qml/networkaccessmanagerfactory/CMakeLists.txt
@@ -0,0 +1,48 @@
+# Generated from networkaccessmanagerfactory.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(networkaccessmanagerfactory LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/networkaccessmanagerfactory")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS Network)
+
+add_qt_gui_executable(networkaccessmanagerfactory
+ main.cpp
+)
+target_link_libraries(networkaccessmanagerfactory PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Network
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(networkaccessmanagerfactory_resource_files
+ "view.qml"
+)
+
+qt6_add_resources(networkaccessmanagerfactory "networkaccessmanagerfactory"
+ PREFIX
+ "/"
+ FILES
+ ${networkaccessmanagerfactory_resource_files}
+)
+
+install(TARGETS networkaccessmanagerfactory
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/qml/qmlextensionplugins/CMakeLists.txt b/examples/qml/qmlextensionplugins/CMakeLists.txt
new file mode 100644
index 0000000000..333a1e198e
--- /dev/null
+++ b/examples/qml/qmlextensionplugins/CMakeLists.txt
@@ -0,0 +1,47 @@
+# Generated from qmlextensionplugins.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(qmlqtimeexampleplugin LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/qmlextensionplugins/imports/TimeExample")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+
+qt6_add_qml_module(qmlqtimeexampleplugin
+ OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/imports/TimeExample"
+ VERSION 1.0
+ URI "TimeExample"
+ INSTALL_LOCATION ${INSTALL_EXAMPLEDIR}
+)
+
+target_sources(qmlqtimeexampleplugin PRIVATE
+ plugin.cpp
+ timemodel.cpp timemodel.h
+)
+target_link_libraries(qmlqtimeexampleplugin PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+)
+
+install(TARGETS qmlqtimeexampleplugin
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(qmlqtimeexampleplugin PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI TimeExample
+)
+
+qt6_qml_type_registration(qmlqtimeexampleplugin)
diff --git a/examples/qml/referenceexamples/CMakeLists.txt b/examples/qml/referenceexamples/CMakeLists.txt
new file mode 100644
index 0000000000..827e3b0060
--- /dev/null
+++ b/examples/qml/referenceexamples/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from referenceexamples.pro.
+
+add_subdirectory(adding)
+add_subdirectory(coercion)
+add_subdirectory(default)
+add_subdirectory(properties)
+add_subdirectory(methods)
+if(TARGET Qt::Widgets)
+ add_subdirectory(extended)
+endif()
+if(TARGET Qt::Quick)
+ add_subdirectory(attached)
+ add_subdirectory(binding)
+ add_subdirectory(grouped)
+ add_subdirectory(signal)
+ add_subdirectory(valuesource)
+endif()
diff --git a/examples/qml/referenceexamples/adding/CMakeLists.txt b/examples/qml/referenceexamples/adding/CMakeLists.txt
new file mode 100644
index 0000000000..57e3858d67
--- /dev/null
+++ b/examples/qml/referenceexamples/adding/CMakeLists.txt
@@ -0,0 +1,51 @@
+# Generated from adding.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(adding LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/adding")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Qml)
+
+add_qt_gui_executable(adding
+ main.cpp
+ person.cpp person.h
+)
+target_link_libraries(adding PUBLIC
+ Qt::Core
+ Qt::Qml
+)
+
+
+# Resources:
+set(adding_resource_files
+ "example.qml"
+)
+
+qt6_add_resources(adding "adding"
+ PREFIX
+ "/"
+ FILES
+ ${adding_resource_files}
+)
+
+install(TARGETS adding
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(adding PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI People
+)
+
+qt6_qml_type_registration(adding)
diff --git a/examples/qml/referenceexamples/attached/CMakeLists.txt b/examples/qml/referenceexamples/attached/CMakeLists.txt
new file mode 100644
index 0000000000..4ffdc1ad9d
--- /dev/null
+++ b/examples/qml/referenceexamples/attached/CMakeLists.txt
@@ -0,0 +1,54 @@
+# Generated from attached.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(attached LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/attached")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+
+add_qt_gui_executable(attached
+ birthdayparty.cpp birthdayparty.h
+ main.cpp
+ person.cpp person.h
+)
+target_link_libraries(attached PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+)
+
+
+# Resources:
+set(attached_resource_files
+ "example.qml"
+)
+
+qt6_add_resources(attached "attached"
+ PREFIX
+ "/"
+ FILES
+ ${attached_resource_files}
+)
+
+install(TARGETS attached
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(attached PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI People
+)
+
+qt6_qml_type_registration(attached)
diff --git a/examples/qml/referenceexamples/binding/CMakeLists.txt b/examples/qml/referenceexamples/binding/CMakeLists.txt
new file mode 100644
index 0000000000..be6cbf3ee5
--- /dev/null
+++ b/examples/qml/referenceexamples/binding/CMakeLists.txt
@@ -0,0 +1,55 @@
+# Generated from binding.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(binding LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/binding")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+
+add_qt_gui_executable(binding
+ birthdayparty.cpp birthdayparty.h
+ happybirthdaysong.cpp happybirthdaysong.h
+ main.cpp
+ person.cpp person.h
+)
+target_link_libraries(binding PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+)
+
+
+# Resources:
+set(binding_resource_files
+ "example.qml"
+)
+
+qt6_add_resources(binding "binding"
+ PREFIX
+ "/"
+ FILES
+ ${binding_resource_files}
+)
+
+install(TARGETS binding
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(binding PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI People
+)
+
+qt6_qml_type_registration(binding)
diff --git a/examples/qml/referenceexamples/coercion/CMakeLists.txt b/examples/qml/referenceexamples/coercion/CMakeLists.txt
new file mode 100644
index 0000000000..46e7c5d5be
--- /dev/null
+++ b/examples/qml/referenceexamples/coercion/CMakeLists.txt
@@ -0,0 +1,52 @@
+# Generated from coercion.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(coercion LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/coercion")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Qml)
+
+add_qt_gui_executable(coercion
+ birthdayparty.cpp birthdayparty.h
+ main.cpp
+ person.cpp person.h
+)
+target_link_libraries(coercion PUBLIC
+ Qt::Core
+ Qt::Qml
+)
+
+
+# Resources:
+set(coercion_resource_files
+ "example.qml"
+)
+
+qt6_add_resources(coercion "coercion"
+ PREFIX
+ "/"
+ FILES
+ ${coercion_resource_files}
+)
+
+install(TARGETS coercion
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(coercion PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI People
+)
+
+qt6_qml_type_registration(coercion)
diff --git a/examples/qml/referenceexamples/default/CMakeLists.txt b/examples/qml/referenceexamples/default/CMakeLists.txt
new file mode 100644
index 0000000000..b96376565c
--- /dev/null
+++ b/examples/qml/referenceexamples/default/CMakeLists.txt
@@ -0,0 +1,52 @@
+# Generated from default.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(default LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/default")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Qml)
+
+add_qt_gui_executable(default
+ birthdayparty.cpp birthdayparty.h
+ main.cpp
+ person.cpp person.h
+)
+target_link_libraries(default PUBLIC
+ Qt::Core
+ Qt::Qml
+)
+
+
+# Resources:
+set(default_resource_files
+ "example.qml"
+)
+
+qt6_add_resources(default "default"
+ PREFIX
+ "/"
+ FILES
+ ${default_resource_files}
+)
+
+install(TARGETS default
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(default PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI People
+)
+
+qt6_qml_type_registration(default)
diff --git a/examples/qml/referenceexamples/extended/CMakeLists.txt b/examples/qml/referenceexamples/extended/CMakeLists.txt
new file mode 100644
index 0000000000..1ee95f3dde
--- /dev/null
+++ b/examples/qml/referenceexamples/extended/CMakeLists.txt
@@ -0,0 +1,55 @@
+# Generated from extended.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(extended LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/extended")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Widgets)
+
+add_qt_gui_executable(extended
+ lineedit.cpp lineedit.h
+ main.cpp
+)
+target_link_libraries(extended PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Widgets
+)
+
+
+# Resources:
+set(extended_resource_files
+ "example.qml"
+)
+
+qt6_add_resources(extended "extended"
+ PREFIX
+ "/"
+ FILES
+ ${extended_resource_files}
+)
+
+install(TARGETS extended
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(extended PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI People
+)
+
+qt6_qml_type_registration(extended)
diff --git a/examples/qml/referenceexamples/grouped/CMakeLists.txt b/examples/qml/referenceexamples/grouped/CMakeLists.txt
new file mode 100644
index 0000000000..89bef66769
--- /dev/null
+++ b/examples/qml/referenceexamples/grouped/CMakeLists.txt
@@ -0,0 +1,54 @@
+# Generated from grouped.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(grouped LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/grouped")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+
+add_qt_gui_executable(grouped
+ birthdayparty.cpp birthdayparty.h
+ main.cpp
+ person.cpp person.h
+)
+target_link_libraries(grouped PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+)
+
+
+# Resources:
+set(grouped_resource_files
+ "example.qml"
+)
+
+qt6_add_resources(grouped "grouped"
+ PREFIX
+ "/"
+ FILES
+ ${grouped_resource_files}
+)
+
+install(TARGETS grouped
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(grouped PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI People
+)
+
+qt6_qml_type_registration(grouped)
diff --git a/examples/qml/referenceexamples/methods/CMakeLists.txt b/examples/qml/referenceexamples/methods/CMakeLists.txt
new file mode 100644
index 0000000000..5812e55eb7
--- /dev/null
+++ b/examples/qml/referenceexamples/methods/CMakeLists.txt
@@ -0,0 +1,52 @@
+# Generated from methods.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(methods LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/methods")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Qml)
+
+add_qt_gui_executable(methods
+ birthdayparty.cpp birthdayparty.h
+ main.cpp
+ person.cpp person.h
+)
+target_link_libraries(methods PUBLIC
+ Qt::Core
+ Qt::Qml
+)
+
+
+# Resources:
+set(methods_resource_files
+ "example.qml"
+)
+
+qt6_add_resources(methods "methods"
+ PREFIX
+ "/"
+ FILES
+ ${methods_resource_files}
+)
+
+install(TARGETS methods
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(methods PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI People
+)
+
+qt6_qml_type_registration(methods)
diff --git a/examples/qml/referenceexamples/properties/CMakeLists.txt b/examples/qml/referenceexamples/properties/CMakeLists.txt
new file mode 100644
index 0000000000..13c472035f
--- /dev/null
+++ b/examples/qml/referenceexamples/properties/CMakeLists.txt
@@ -0,0 +1,52 @@
+# Generated from properties.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(properties LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/properties")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Qml)
+
+add_qt_gui_executable(properties
+ birthdayparty.cpp birthdayparty.h
+ main.cpp
+ person.cpp person.h
+)
+target_link_libraries(properties PUBLIC
+ Qt::Core
+ Qt::Qml
+)
+
+
+# Resources:
+set(properties_resource_files
+ "example.qml"
+)
+
+qt6_add_resources(properties "properties"
+ PREFIX
+ "/"
+ FILES
+ ${properties_resource_files}
+)
+
+install(TARGETS properties
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(properties PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI People
+)
+
+qt6_qml_type_registration(properties)
diff --git a/examples/qml/referenceexamples/signal/CMakeLists.txt b/examples/qml/referenceexamples/signal/CMakeLists.txt
new file mode 100644
index 0000000000..29fdeda090
--- /dev/null
+++ b/examples/qml/referenceexamples/signal/CMakeLists.txt
@@ -0,0 +1,54 @@
+# Generated from signal.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(signal LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/signal")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+
+add_qt_gui_executable(signal
+ birthdayparty.cpp birthdayparty.h
+ main.cpp
+ person.cpp person.h
+)
+target_link_libraries(signal PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+)
+
+
+# Resources:
+set(signal_resource_files
+ "example.qml"
+)
+
+qt6_add_resources(signal "signal"
+ PREFIX
+ "/"
+ FILES
+ ${signal_resource_files}
+)
+
+install(TARGETS signal
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(signal PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI People
+)
+
+qt6_qml_type_registration(signal)
diff --git a/examples/qml/referenceexamples/valuesource/CMakeLists.txt b/examples/qml/referenceexamples/valuesource/CMakeLists.txt
new file mode 100644
index 0000000000..3adcebaeca
--- /dev/null
+++ b/examples/qml/referenceexamples/valuesource/CMakeLists.txt
@@ -0,0 +1,55 @@
+# Generated from valuesource.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(valuesource LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/referenceexamples/valuesource")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+
+add_qt_gui_executable(valuesource
+ birthdayparty.cpp birthdayparty.h
+ happybirthdaysong.cpp happybirthdaysong.h
+ main.cpp
+ person.cpp person.h
+)
+target_link_libraries(valuesource PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+)
+
+
+# Resources:
+set(valuesource_resource_files
+ "example.qml"
+)
+
+qt6_add_resources(valuesource "valuesource"
+ PREFIX
+ "/"
+ FILES
+ ${valuesource_resource_files}
+)
+
+install(TARGETS valuesource
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(valuesource PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI People
+)
+
+qt6_qml_type_registration(valuesource)
diff --git a/examples/qml/shell/CMakeLists.txt b/examples/qml/shell/CMakeLists.txt
new file mode 100644
index 0000000000..8e75f4b32b
--- /dev/null
+++ b/examples/qml/shell/CMakeLists.txt
@@ -0,0 +1,29 @@
+# Generated from shell.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(shell LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/shell")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Qml)
+
+add_qt_gui_executable(shell
+ main.cpp
+)
+target_link_libraries(shell PUBLIC
+ Qt::Core
+ Qt::Qml
+)
+
+install(TARGETS shell
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/qml/tutorials/CMakeLists.txt b/examples/qml/tutorials/CMakeLists.txt
new file mode 100644
index 0000000000..0aa8ff83e8
--- /dev/null
+++ b/examples/qml/tutorials/CMakeLists.txt
@@ -0,0 +1,5 @@
+# Generated from tutorials.pro.
+
+if(TARGET Qt::Quick)
+ add_subdirectory(extending-qml)
+endif()
diff --git a/examples/qml/tutorials/extending-qml/.prev_CMakeLists.txt b/examples/qml/tutorials/extending-qml/.prev_CMakeLists.txt
new file mode 100644
index 0000000000..8e41f3d77d
--- /dev/null
+++ b/examples/qml/tutorials/extending-qml/.prev_CMakeLists.txt
@@ -0,0 +1,8 @@
+# Generated from extending-qml.pro.
+
+add_subdirectory(chapter1-basics)
+add_subdirectory(chapter2-methods)
+add_subdirectory(chapter3-bindings)
+add_subdirectory(chapter4-customPropertyTypes)
+add_subdirectory(chapter5-listproperties)
+add_subdirectory(chapter6-plugins)
diff --git a/examples/qml/tutorials/extending-qml/CMakeLists.txt b/examples/qml/tutorials/extending-qml/CMakeLists.txt
new file mode 100644
index 0000000000..8e41f3d77d
--- /dev/null
+++ b/examples/qml/tutorials/extending-qml/CMakeLists.txt
@@ -0,0 +1,8 @@
+# Generated from extending-qml.pro.
+
+add_subdirectory(chapter1-basics)
+add_subdirectory(chapter2-methods)
+add_subdirectory(chapter3-bindings)
+add_subdirectory(chapter4-customPropertyTypes)
+add_subdirectory(chapter5-listproperties)
+add_subdirectory(chapter6-plugins)
diff --git a/examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt
new file mode 100644
index 0000000000..1ca75257da
--- /dev/null
+++ b/examples/qml/tutorials/extending-qml/chapter1-basics/CMakeLists.txt
@@ -0,0 +1,55 @@
+# Generated from chapter1-basics.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(chapter1-basics LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/tutorials/extending-qml/chapter1-basics")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(chapter1-basics
+ main.cpp
+ piechart.cpp piechart.h
+)
+target_link_libraries(chapter1-basics PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(chapter1-basics_resource_files
+ "app.qml"
+)
+
+qt6_add_resources(chapter1-basics "chapter1-basics"
+ PREFIX
+ "/"
+ FILES
+ ${chapter1-basics_resource_files}
+)
+
+install(TARGETS chapter1-basics
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(chapter1-basics PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI Charts
+)
+
+qt6_qml_type_registration(chapter1-basics)
diff --git a/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt
new file mode 100644
index 0000000000..30b9fee0cb
--- /dev/null
+++ b/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt
@@ -0,0 +1,55 @@
+# Generated from chapter2-methods.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(chapter2-methods LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/tutorials/extending-qml/chapter2-methods")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(chapter2-methods
+ main.cpp
+ piechart.cpp piechart.h
+)
+target_link_libraries(chapter2-methods PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(chapter2-methods_resource_files
+ "app.qml"
+)
+
+qt6_add_resources(chapter2-methods "chapter2-methods"
+ PREFIX
+ "/"
+ FILES
+ ${chapter2-methods_resource_files}
+)
+
+install(TARGETS chapter2-methods
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(chapter2-methods PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI Charts
+)
+
+qt6_qml_type_registration(chapter2-methods)
diff --git a/examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt
new file mode 100644
index 0000000000..966966f58d
--- /dev/null
+++ b/examples/qml/tutorials/extending-qml/chapter3-bindings/CMakeLists.txt
@@ -0,0 +1,55 @@
+# Generated from chapter3-bindings.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(chapter3-bindings LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/tutorials/extending-qml/chapter3-bindings")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(chapter3-bindings
+ main.cpp
+ piechart.cpp piechart.h
+)
+target_link_libraries(chapter3-bindings PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(chapter3-bindings_resource_files
+ "app.qml"
+)
+
+qt6_add_resources(chapter3-bindings "chapter3-bindings"
+ PREFIX
+ "/"
+ FILES
+ ${chapter3-bindings_resource_files}
+)
+
+install(TARGETS chapter3-bindings
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(chapter3-bindings PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI Charts
+)
+
+qt6_qml_type_registration(chapter3-bindings)
diff --git a/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt
new file mode 100644
index 0000000000..4682a7be05
--- /dev/null
+++ b/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/CMakeLists.txt
@@ -0,0 +1,56 @@
+# Generated from chapter4-customPropertyTypes.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(chapter4-customPropertyTypes LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(chapter4-customPropertyTypes
+ main.cpp
+ piechart.cpp piechart.h
+ pieslice.cpp pieslice.h
+)
+target_link_libraries(chapter4-customPropertyTypes PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(chapter4-customPropertyTypes_resource_files
+ "app.qml"
+)
+
+qt6_add_resources(chapter4-customPropertyTypes "chapter4-customPropertyTypes"
+ PREFIX
+ "/"
+ FILES
+ ${chapter4-customPropertyTypes_resource_files}
+)
+
+install(TARGETS chapter4-customPropertyTypes
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(chapter4-customPropertyTypes PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI Charts
+)
+
+qt6_qml_type_registration(chapter4-customPropertyTypes)
diff --git a/examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt
new file mode 100644
index 0000000000..ff1129be15
--- /dev/null
+++ b/examples/qml/tutorials/extending-qml/chapter5-listproperties/CMakeLists.txt
@@ -0,0 +1,56 @@
+# Generated from chapter5-listproperties.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(chapter5-listproperties LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/tutorials/extending-qml/chapter5-listproperties")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(chapter5-listproperties
+ main.cpp
+ piechart.cpp piechart.h
+ pieslice.cpp pieslice.h
+)
+target_link_libraries(chapter5-listproperties PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(chapter5-listproperties_resource_files
+ "app.qml"
+)
+
+qt6_add_resources(chapter5-listproperties "chapter5-listproperties"
+ PREFIX
+ "/"
+ FILES
+ ${chapter5-listproperties_resource_files}
+)
+
+install(TARGETS chapter5-listproperties
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(chapter5-listproperties PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI Charts
+)
+
+qt6_qml_type_registration(chapter5-listproperties)
diff --git a/examples/qml/tutorials/extending-qml/chapter6-plugins/.prev_CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter6-plugins/.prev_CMakeLists.txt
new file mode 100644
index 0000000000..ef3b9791f9
--- /dev/null
+++ b/examples/qml/tutorials/extending-qml/chapter6-plugins/.prev_CMakeLists.txt
@@ -0,0 +1,43 @@
+# Generated from chapter6-plugins.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(chapter6-plugins LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/tutorials/extending-qml/chapter6-plugins")
+
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(chapter6-plugins
+ main.cpp
+)
+target_link_libraries(chapter6-plugins PUBLIC
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(app_resource_files
+ "app.qml"
+)
+
+qt6_add_resources(chapter6-plugins "app"
+ PREFIX
+ "/"
+ FILES
+ ${app_resource_files}
+)
+
+install(TARGETS chapter6-plugins
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+add_subdirectory(import)
diff --git a/examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt
new file mode 100644
index 0000000000..f8b1a2de4c
--- /dev/null
+++ b/examples/qml/tutorials/extending-qml/chapter6-plugins/CMakeLists.txt
@@ -0,0 +1,44 @@
+# Generated from chapter6-plugins.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(chapter6-plugins LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/tutorials/extending-qml/chapter6-plugins")
+
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(chapter6-plugins
+ main.cpp
+)
+target_link_libraries(chapter6-plugins PUBLIC
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(app_resource_files
+ "app.qml"
+)
+
+qt6_add_resources(chapter6-plugins "app"
+ PREFIX
+ "/"
+ FILES
+ ${app_resource_files}
+)
+
+install(TARGETS chapter6-plugins
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+add_subdirectory(import)
diff --git a/examples/qml/tutorials/extending-qml/chapter6-plugins/import/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter6-plugins/import/CMakeLists.txt
new file mode 100644
index 0000000000..23ac48170d
--- /dev/null
+++ b/examples/qml/tutorials/extending-qml/chapter6-plugins/import/CMakeLists.txt
@@ -0,0 +1,50 @@
+# Generated from import.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(chartsplugin LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/tutorials/extending-qml/chapter6-plugins/Charts")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+qt6_add_qml_module(chartsplugin
+ OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../Charts"
+ VERSION 1.0
+ URI "Charts"
+ INSTALL_LOCATION ${INSTALL_EXAMPLEDIR}
+)
+
+target_sources(chartsplugin PRIVATE
+ chartsplugin.h
+ piechart.cpp piechart.h
+ pieslice.cpp pieslice.h
+)
+target_link_libraries(chartsplugin PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+install(TARGETS chartsplugin
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(chartsplugin PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI Charts
+)
+
+qt6_qml_type_registration(chartsplugin)
diff --git a/examples/qml/xmlhttprequest/CMakeLists.txt b/examples/qml/xmlhttprequest/CMakeLists.txt
new file mode 100644
index 0000000000..b8e691c43b
--- /dev/null
+++ b/examples/qml/xmlhttprequest/CMakeLists.txt
@@ -0,0 +1,105 @@
+# Generated from xmlhttprequest.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(xmlhttprequest LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/qml/xmlhttprequest")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS Qml)
+
+add_qt_gui_executable(xmlhttprequest
+ main.cpp
+)
+target_link_libraries(xmlhttprequest PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(xmlhttprequest_resource_files
+ "Get.qml"
+ "GetForm.ui.qml"
+ "data.xml"
+ "methods.js"
+ "xmlhttprequest.qml"
+)
+
+qt6_add_resources(xmlhttprequest "xmlhttprequest"
+ PREFIX
+ "/qml/xmlhttprequest"
+ FILES
+ ${xmlhttprequest_resource_files}
+)
+set_source_files_properties("../../quick/shared/Button.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "Button.qml"
+)
+set_source_files_properties("../../quick/shared/CheckBox.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "CheckBox.qml"
+)
+set_source_files_properties("../../quick/shared/Label.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "Label.qml"
+)
+set_source_files_properties("../../quick/shared/LauncherList.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "LauncherList.qml"
+)
+set_source_files_properties("../../quick/shared/SimpleLauncherDelegate.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "SimpleLauncherDelegate.qml"
+)
+set_source_files_properties("../../quick/shared/Slider.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "Slider.qml"
+)
+set_source_files_properties("../../quick/shared/TextField.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "TextField.qml"
+)
+set_source_files_properties("../../quick/shared/images/back.png"
+ PROPERTIES QT_RESOURCE_ALIAS "images/back.png"
+)
+set_source_files_properties("../../quick/shared/images/checkmark.png"
+ PROPERTIES QT_RESOURCE_ALIAS "images/checkmark.png"
+)
+set_source_files_properties("../../quick/shared/images/next.png"
+ PROPERTIES QT_RESOURCE_ALIAS "images/next.png"
+)
+set_source_files_properties("../../quick/shared/images/slider_handle.png"
+ PROPERTIES QT_RESOURCE_ALIAS "images/slider_handle.png"
+)
+set(quick_shared_resource_files
+ "Button.qml"
+ "CheckBox.qml"
+ "Label.qml"
+ "LauncherList.qml"
+ "SimpleLauncherDelegate.qml"
+ "Slider.qml"
+ "TextField.qml"
+ "images/back.png"
+ "images/checkmark.png"
+ "images/next.png"
+ "images/slider_handle.png"
+)
+
+qt6_add_resources(xmlhttprequest "quick_shared"
+ PREFIX
+ "/quick/shared"
+ BASE
+ "../../quick/shared"
+ FILES
+ ${quick_shared_resource_files}
+)
+
+install(TARGETS xmlhttprequest
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)