aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/.prev_CMakeLists.txt7
-rw-r--r--examples/CMakeLists.txt9
-rw-r--r--examples/quickcontrols2/CMakeLists.txt14
-rw-r--r--examples/quickcontrols2/chattutorial/CMakeLists.txt7
-rw-r--r--examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt46
-rw-r--r--examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt105
-rw-r--r--examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt107
-rw-r--r--examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt111
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt114
-rw-r--r--examples/quickcontrols2/contactlist/CMakeLists.txt51
-rw-r--r--examples/quickcontrols2/flatstyle/CMakeLists.txt55
-rw-r--r--examples/quickcontrols2/gallery/CMakeLists.txt99
-rw-r--r--examples/quickcontrols2/imagine/automotive/CMakeLists.txt184
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt215
-rw-r--r--examples/quickcontrols2/sidepanel/CMakeLists.txt50
-rw-r--r--examples/quickcontrols2/swipetoremove/CMakeLists.txt45
-rw-r--r--examples/quickcontrols2/texteditor/CMakeLists.txt65
-rw-r--r--examples/quickcontrols2/wearable/CMakeLists.txt196
18 files changed, 1480 insertions, 0 deletions
diff --git a/examples/.prev_CMakeLists.txt b/examples/.prev_CMakeLists.txt
new file mode 100644
index 00000000..e77c42b1
--- /dev/null
+++ b/examples/.prev_CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from examples.pro.
+
+qt_examples_build_begin()
+
+add_subdirectory(quickcontrols2)
+
+qt_examples_build_end()
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
new file mode 100644
index 00000000..80aa41e9
--- /dev/null
+++ b/examples/CMakeLists.txt
@@ -0,0 +1,9 @@
+# Generated from examples.pro.
+
+find_package(Qt6 COMPONENTS Sql) # special case
+
+qt_examples_build_begin()
+
+add_subdirectory(quickcontrols2)
+
+qt_examples_build_end()
diff --git a/examples/quickcontrols2/CMakeLists.txt b/examples/quickcontrols2/CMakeLists.txt
new file mode 100644
index 00000000..7ca535e9
--- /dev/null
+++ b/examples/quickcontrols2/CMakeLists.txt
@@ -0,0 +1,14 @@
+# Generated from quickcontrols2.pro.
+
+add_subdirectory(gallery)
+add_subdirectory(chattutorial)
+add_subdirectory(texteditor)
+add_subdirectory(contactlist)
+add_subdirectory(sidepanel)
+add_subdirectory(swipetoremove)
+add_subdirectory(wearable)
+add_subdirectory(imagine/automotive)
+add_subdirectory(imagine/musicplayer)
+if(TARGET Qt::Widgets)
+ add_subdirectory(flatstyle)
+endif()
diff --git a/examples/quickcontrols2/chattutorial/CMakeLists.txt b/examples/quickcontrols2/chattutorial/CMakeLists.txt
new file mode 100644
index 00000000..9a4bd9cb
--- /dev/null
+++ b/examples/quickcontrols2/chattutorial/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from chattutorial.pro.
+
+add_subdirectory(chapter1-settingup)
+add_subdirectory(chapter2-lists)
+add_subdirectory(chapter3-navigation)
+add_subdirectory(chapter4-models)
+add_subdirectory(chapter5-styling)
diff --git a/examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt
new file mode 100644
index 00000000..90f06968
--- /dev/null
+++ b/examples/quickcontrols2/chattutorial/chapter1-settingup/CMakeLists.txt
@@ -0,0 +1,46 @@
+# Generated from chapter1-settingup.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(chapter1-settingup LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quickcontrols2/chattutorial/chapter1-settingup")
+
+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-settingup
+ main.cpp
+)
+target_link_libraries(chapter1-settingup PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(qml_resource_files
+ "main.qml"
+)
+
+qt6_add_resources(chapter1-settingup "qml"
+ PREFIX
+ "/"
+ FILES
+ ${qml_resource_files}
+)
+
+install(TARGETS chapter1-settingup
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt
new file mode 100644
index 00000000..1d4d124d
--- /dev/null
+++ b/examples/quickcontrols2/chattutorial/chapter2-lists/CMakeLists.txt
@@ -0,0 +1,105 @@
+# Generated from chapter2-lists.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(chapter2-lists LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quickcontrols2/chattutorial/chapter2-lists")
+
+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-lists
+ main.cpp
+)
+target_link_libraries(chapter2-lists PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(qml_resource_files
+ "main.qml"
+)
+
+qt6_add_resources(chapter2-lists "qml"
+ PREFIX
+ "/"
+ FILES
+ ${qml_resource_files}
+)
+set_source_files_properties("../shared/Albert_Einstein.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein.png"
+)
+set_source_files_properties("../shared/Albert_Einstein@2x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein@2x.png"
+)
+set_source_files_properties("../shared/Albert_Einstein@3x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein@3x.png"
+)
+set_source_files_properties("../shared/Albert_Einstein@4x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein@4x.png"
+)
+set_source_files_properties("../shared/Ernest_Hemingway.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway.png"
+)
+set_source_files_properties("../shared/Ernest_Hemingway@2x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway@2x.png"
+)
+set_source_files_properties("../shared/Ernest_Hemingway@3x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway@3x.png"
+)
+set_source_files_properties("../shared/Ernest_Hemingway@4x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway@4x.png"
+)
+set_source_files_properties("../shared/Hans_Gude.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude.png"
+)
+set_source_files_properties("../shared/Hans_Gude@2x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude@2x.png"
+)
+set_source_files_properties("../shared/Hans_Gude@3x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude@3x.png"
+)
+set_source_files_properties("../shared/Hans_Gude@4x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude@4x.png"
+)
+set(shared_resource_files
+ "Albert_Einstein.png"
+ "Albert_Einstein@2x.png"
+ "Albert_Einstein@3x.png"
+ "Albert_Einstein@4x.png"
+ "Ernest_Hemingway.png"
+ "Ernest_Hemingway@2x.png"
+ "Ernest_Hemingway@3x.png"
+ "Ernest_Hemingway@4x.png"
+ "Hans_Gude.png"
+ "Hans_Gude@2x.png"
+ "Hans_Gude@3x.png"
+ "Hans_Gude@4x.png"
+)
+
+qt6_add_resources(chapter2-lists "shared"
+ PREFIX
+ "/"
+ BASE
+ "../shared"
+ FILES
+ ${shared_resource_files}
+)
+
+install(TARGETS chapter2-lists
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt
new file mode 100644
index 00000000..9b405c47
--- /dev/null
+++ b/examples/quickcontrols2/chattutorial/chapter3-navigation/CMakeLists.txt
@@ -0,0 +1,107 @@
+# Generated from chapter3-navigation.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(chapter3-navigation LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quickcontrols2/chattutorial/chapter3-navigation")
+
+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-navigation
+ main.cpp
+)
+target_link_libraries(chapter3-navigation PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(qml_resource_files
+ "ContactPage.qml"
+ "ConversationPage.qml"
+ "main.qml"
+)
+
+qt6_add_resources(chapter3-navigation "qml"
+ PREFIX
+ "/"
+ FILES
+ ${qml_resource_files}
+)
+set_source_files_properties("../shared/Albert_Einstein.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein.png"
+)
+set_source_files_properties("../shared/Albert_Einstein@2x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein@2x.png"
+)
+set_source_files_properties("../shared/Albert_Einstein@3x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein@3x.png"
+)
+set_source_files_properties("../shared/Albert_Einstein@4x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein@4x.png"
+)
+set_source_files_properties("../shared/Ernest_Hemingway.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway.png"
+)
+set_source_files_properties("../shared/Ernest_Hemingway@2x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway@2x.png"
+)
+set_source_files_properties("../shared/Ernest_Hemingway@3x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway@3x.png"
+)
+set_source_files_properties("../shared/Ernest_Hemingway@4x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway@4x.png"
+)
+set_source_files_properties("../shared/Hans_Gude.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude.png"
+)
+set_source_files_properties("../shared/Hans_Gude@2x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude@2x.png"
+)
+set_source_files_properties("../shared/Hans_Gude@3x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude@3x.png"
+)
+set_source_files_properties("../shared/Hans_Gude@4x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude@4x.png"
+)
+set(shared_resource_files
+ "Albert_Einstein.png"
+ "Albert_Einstein@2x.png"
+ "Albert_Einstein@3x.png"
+ "Albert_Einstein@4x.png"
+ "Ernest_Hemingway.png"
+ "Ernest_Hemingway@2x.png"
+ "Ernest_Hemingway@3x.png"
+ "Ernest_Hemingway@4x.png"
+ "Hans_Gude.png"
+ "Hans_Gude@2x.png"
+ "Hans_Gude@3x.png"
+ "Hans_Gude@4x.png"
+)
+
+qt6_add_resources(chapter3-navigation "shared"
+ PREFIX
+ "/"
+ BASE
+ "../shared"
+ FILES
+ ${shared_resource_files}
+)
+
+install(TARGETS chapter3-navigation
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt
new file mode 100644
index 00000000..dfccc0ca
--- /dev/null
+++ b/examples/quickcontrols2/chattutorial/chapter4-models/CMakeLists.txt
@@ -0,0 +1,111 @@
+# Generated from chapter4-models.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(chapter4-models LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quickcontrols2/chattutorial/chapter4-models")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS Sql)
+
+add_qt_gui_executable(chapter4-models
+ main.cpp
+ sqlcontactmodel.cpp sqlcontactmodel.h
+ sqlconversationmodel.cpp sqlconversationmodel.h
+)
+target_link_libraries(chapter4-models PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+ Qt::Sql
+)
+
+
+# Resources:
+set(qml_resource_files
+ "ContactPage.qml"
+ "ConversationPage.qml"
+ "main.qml"
+)
+
+qt6_add_resources(chapter4-models "qml"
+ PREFIX
+ "/"
+ FILES
+ ${qml_resource_files}
+)
+set_source_files_properties("../shared/Albert_Einstein.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein.png"
+)
+set_source_files_properties("../shared/Albert_Einstein@2x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein@2x.png"
+)
+set_source_files_properties("../shared/Albert_Einstein@3x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein@3x.png"
+)
+set_source_files_properties("../shared/Albert_Einstein@4x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein@4x.png"
+)
+set_source_files_properties("../shared/Ernest_Hemingway.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway.png"
+)
+set_source_files_properties("../shared/Ernest_Hemingway@2x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway@2x.png"
+)
+set_source_files_properties("../shared/Ernest_Hemingway@3x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway@3x.png"
+)
+set_source_files_properties("../shared/Ernest_Hemingway@4x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway@4x.png"
+)
+set_source_files_properties("../shared/Hans_Gude.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude.png"
+)
+set_source_files_properties("../shared/Hans_Gude@2x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude@2x.png"
+)
+set_source_files_properties("../shared/Hans_Gude@3x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude@3x.png"
+)
+set_source_files_properties("../shared/Hans_Gude@4x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude@4x.png"
+)
+set(shared_resource_files
+ "Albert_Einstein.png"
+ "Albert_Einstein@2x.png"
+ "Albert_Einstein@3x.png"
+ "Albert_Einstein@4x.png"
+ "Ernest_Hemingway.png"
+ "Ernest_Hemingway@2x.png"
+ "Ernest_Hemingway@3x.png"
+ "Ernest_Hemingway@4x.png"
+ "Hans_Gude.png"
+ "Hans_Gude@2x.png"
+ "Hans_Gude@3x.png"
+ "Hans_Gude@4x.png"
+)
+
+qt6_add_resources(chapter4-models "shared"
+ PREFIX
+ "/"
+ BASE
+ "../shared"
+ FILES
+ ${shared_resource_files}
+)
+
+install(TARGETS chapter4-models
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt b/examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt
new file mode 100644
index 00000000..73b493d1
--- /dev/null
+++ b/examples/quickcontrols2/chattutorial/chapter5-styling/CMakeLists.txt
@@ -0,0 +1,114 @@
+# Generated from chapter5-styling.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(chapter5-styling LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quickcontrols2/chattutorial/chapter5-styling")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS Sql)
+
+add_qt_gui_executable(chapter5-styling
+ main.cpp
+ sqlcontactmodel.cpp sqlcontactmodel.h
+ sqlconversationmodel.cpp sqlconversationmodel.h
+)
+target_link_libraries(chapter5-styling PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+ Qt::Sql
+)
+
+
+# Resources:
+set(qml_resource_files
+ "+material/ChatToolBar.qml"
+ "ChatToolBar.qml"
+ "ContactPage.qml"
+ "ConversationPage.qml"
+ "main.qml"
+ "qtquickcontrols2.conf"
+)
+
+qt6_add_resources(chapter5-styling "qml"
+ PREFIX
+ "/"
+ FILES
+ ${qml_resource_files}
+)
+set_source_files_properties("../shared/Albert_Einstein.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein.png"
+)
+set_source_files_properties("../shared/Albert_Einstein@2x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein@2x.png"
+)
+set_source_files_properties("../shared/Albert_Einstein@3x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein@3x.png"
+)
+set_source_files_properties("../shared/Albert_Einstein@4x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Albert_Einstein@4x.png"
+)
+set_source_files_properties("../shared/Ernest_Hemingway.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway.png"
+)
+set_source_files_properties("../shared/Ernest_Hemingway@2x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway@2x.png"
+)
+set_source_files_properties("../shared/Ernest_Hemingway@3x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway@3x.png"
+)
+set_source_files_properties("../shared/Ernest_Hemingway@4x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Ernest_Hemingway@4x.png"
+)
+set_source_files_properties("../shared/Hans_Gude.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude.png"
+)
+set_source_files_properties("../shared/Hans_Gude@2x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude@2x.png"
+)
+set_source_files_properties("../shared/Hans_Gude@3x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude@3x.png"
+)
+set_source_files_properties("../shared/Hans_Gude@4x.png"
+ PROPERTIES QT_RESOURCE_ALIAS "Hans_Gude@4x.png"
+)
+set(shared_resource_files
+ "Albert_Einstein.png"
+ "Albert_Einstein@2x.png"
+ "Albert_Einstein@3x.png"
+ "Albert_Einstein@4x.png"
+ "Ernest_Hemingway.png"
+ "Ernest_Hemingway@2x.png"
+ "Ernest_Hemingway@3x.png"
+ "Ernest_Hemingway@4x.png"
+ "Hans_Gude.png"
+ "Hans_Gude@2x.png"
+ "Hans_Gude@3x.png"
+ "Hans_Gude@4x.png"
+)
+
+qt6_add_resources(chapter5-styling "shared"
+ PREFIX
+ "/"
+ BASE
+ "../shared"
+ FILES
+ ${shared_resource_files}
+)
+
+install(TARGETS chapter5-styling
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/quickcontrols2/contactlist/CMakeLists.txt b/examples/quickcontrols2/contactlist/CMakeLists.txt
new file mode 100644
index 00000000..ee2a020f
--- /dev/null
+++ b/examples/quickcontrols2/contactlist/CMakeLists.txt
@@ -0,0 +1,51 @@
+# Generated from contactlist.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(contactlist LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quickcontrols2/contactlist")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(contactlist
+ contactmodel.cpp contactmodel.h
+ main.cpp
+)
+target_link_libraries(contactlist PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Quick
+)
+
+
+# Resources:
+set(qmake_immediate_resource_files
+ "ContactDelegate.ui.qml"
+ "ContactDialog.qml"
+ "ContactForm.ui.qml"
+ "ContactView.ui.qml"
+ "SectionDelegate.ui.qml"
+ "contactlist.qml"
+ "designer/Backend/ContactModel.qml"
+)
+
+qt6_add_resources(contactlist "qmake_immediate"
+ PREFIX
+ "/"
+ FILES
+ ${qmake_immediate_resource_files}
+)
+
+install(TARGETS contactlist
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/quickcontrols2/flatstyle/CMakeLists.txt b/examples/quickcontrols2/flatstyle/CMakeLists.txt
new file mode 100644
index 00000000..54b84b38
--- /dev/null
+++ b/examples/quickcontrols2/flatstyle/CMakeLists.txt
@@ -0,0 +1,55 @@
+# Generated from flatstyle.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(flatstyle LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quickcontrols2/flatstyle")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS QuickControls2)
+find_package(Qt6 COMPONENTS Widgets)
+
+add_qt_gui_executable(flatstyle
+ main.cpp
+)
+target_link_libraries(flatstyle PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Quick
+ Qt::QuickControls2
+ Qt::Widgets
+)
+
+
+# Resources:
+set(qmake_immediate_resource_files
+ "Flat/Button.qml"
+ "Flat/CheckBox.qml"
+ "Flat/Switch.qml"
+ "MainForm.ui.qml"
+ "flatstyle.qml"
+ "imports/Theme/Theme.qml"
+ "imports/Theme/qmldir"
+ "qtquickcontrols2.conf"
+)
+
+qt6_add_resources(flatstyle "qmake_immediate"
+ PREFIX
+ "/"
+ FILES
+ ${qmake_immediate_resource_files}
+)
+
+install(TARGETS flatstyle
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/quickcontrols2/gallery/CMakeLists.txt b/examples/quickcontrols2/gallery/CMakeLists.txt
new file mode 100644
index 00000000..d62169e1
--- /dev/null
+++ b/examples/quickcontrols2/gallery/CMakeLists.txt
@@ -0,0 +1,99 @@
+# Generated from gallery.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(gallery LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quickcontrols2/gallery")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS QuickControls2)
+
+add_qt_gui_executable(gallery
+ gallery.cpp
+)
+target_link_libraries(gallery PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Quick
+ Qt::QuickControls2
+)
+
+
+# Resources:
+set(qmake_immediate_resource_files
+ "gallery.qml"
+ "icons/gallery/20x20/back.png"
+ "icons/gallery/20x20/drawer.png"
+ "icons/gallery/20x20/menu.png"
+ "icons/gallery/20x20@2/back.png"
+ "icons/gallery/20x20@2/drawer.png"
+ "icons/gallery/20x20@2/menu.png"
+ "icons/gallery/20x20@3/back.png"
+ "icons/gallery/20x20@3/drawer.png"
+ "icons/gallery/20x20@3/menu.png"
+ "icons/gallery/20x20@4/back.png"
+ "icons/gallery/20x20@4/drawer.png"
+ "icons/gallery/20x20@4/menu.png"
+ "icons/gallery/index.theme"
+ "images/arrow.png"
+ "images/arrow@2x.png"
+ "images/arrow@3x.png"
+ "images/arrow@4x.png"
+ "images/arrows.png"
+ "images/arrows@2x.png"
+ "images/arrows@3x.png"
+ "images/arrows@4x.png"
+ "images/qt-logo.png"
+ "images/qt-logo@2x.png"
+ "images/qt-logo@3x.png"
+ "images/qt-logo@4x.png"
+ "pages/BusyIndicatorPage.qml"
+ "pages/ButtonPage.qml"
+ "pages/CheckBoxPage.qml"
+ "pages/ComboBoxPage.qml"
+ "pages/DelayButtonPage.qml"
+ "pages/DelegatePage.qml"
+ "pages/DialPage.qml"
+ "pages/DialogPage.qml"
+ "pages/FramePage.qml"
+ "pages/GroupBoxPage.qml"
+ "pages/PageIndicatorPage.qml"
+ "pages/ProgressBarPage.qml"
+ "pages/RadioButtonPage.qml"
+ "pages/RangeSliderPage.qml"
+ "pages/ScrollBarPage.qml"
+ "pages/ScrollIndicatorPage.qml"
+ "pages/ScrollablePage.qml"
+ "pages/SliderPage.qml"
+ "pages/SpinBoxPage.qml"
+ "pages/StackViewPage.qml"
+ "pages/SwipeViewPage.qml"
+ "pages/SwitchPage.qml"
+ "pages/TabBarPage.qml"
+ "pages/TextAreaPage.qml"
+ "pages/TextFieldPage.qml"
+ "pages/ToolTipPage.qml"
+ "pages/TumblerPage.qml"
+ "qtquickcontrols2.conf"
+)
+
+qt6_add_resources(gallery "qmake_immediate"
+ PREFIX
+ "/"
+ FILES
+ ${qmake_immediate_resource_files}
+)
+
+install(TARGETS gallery
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/quickcontrols2/imagine/automotive/CMakeLists.txt b/examples/quickcontrols2/imagine/automotive/CMakeLists.txt
new file mode 100644
index 00000000..22b0bd7b
--- /dev/null
+++ b/examples/quickcontrols2/imagine/automotive/CMakeLists.txt
@@ -0,0 +1,184 @@
+# Generated from automotive.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(automotive LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quickcontrols2/imagine/automotive")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS QuickControls2)
+
+add_qt_gui_executable(automotive
+ automotive.cpp
+)
+target_link_libraries(automotive PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Quick
+ Qt::QuickControls2
+)
+
+
+# Resources:
+set(icons_resource_files
+ "automotive/44x44/air-con.png"
+ "automotive/44x44/command.png"
+ "automotive/44x44/message.png"
+ "automotive/44x44/music.png"
+ "automotive/44x44/seats.png"
+ "automotive/44x44/settings.png"
+ "automotive/44x44/statistics.png"
+ "automotive/44x44/windows.png"
+ "automotive/44x44@2/air-con.png"
+ "automotive/44x44@2/command.png"
+ "automotive/44x44@2/message.png"
+ "automotive/44x44@2/music.png"
+ "automotive/44x44@2/navigation.png"
+ "automotive/44x44@2/seats.png"
+ "automotive/44x44@2/settings.png"
+ "automotive/44x44@2/statistics.png"
+ "automotive/44x44@2/windows.png"
+ "automotive/icons.svg"
+ "automotive/index.theme"
+ "car.png"
+ "car@2x.png"
+ "warning.png"
+ "warning@2x.png"
+ "weather.png"
+ "weather@2x.png"
+)
+
+qt6_add_resources(automotive "icons"
+ PREFIX
+ "/icons"
+ BASE
+ "icons"
+ FILES
+ ${icons_resource_files}
+)
+set(imagine-assets_resource_files
+ "applicationwindow-background.png"
+ "applicationwindow-background@2x.png"
+ "button-background-checked-hovered.9.png"
+ "button-background-checked-hovered@2x.9.png"
+ "button-background-checked.9.png"
+ "button-background-checked@2x.9.png"
+ "button-background-hovered.9.png"
+ "button-background-hovered@2x.9.png"
+ "button-background-pressed.9.png"
+ "button-background-pressed@2x.9.png"
+ "button-background.9.png"
+ "button-background@2x.9.png"
+ "dial-background-hovered.png"
+ "dial-background-hovered@2x.png"
+ "dial-background-pressed.png"
+ "dial-background-pressed@2x.png"
+ "dial-background.png"
+ "dial-background@2x.png"
+ "dial-handle-pressed.png"
+ "dial-handle-pressed@2x.png"
+ "dial-handle.png"
+ "dial-handle@2x.png"
+ "frame-background.9.png"
+ "frame-background@2x.9.png"
+ "itemdelegate-background-checked.9.png"
+ "itemdelegate-background-checked@2x.9.png"
+ "itemdelegate-background-hovered.9.png"
+ "itemdelegate-background-hovered@2x.9.png"
+ "itemdelegate-background-pressed.9.png"
+ "itemdelegate-background-pressed@2x.9.png"
+ "itemdelegate-background.9.png"
+ "itemdelegate-background@2x.9.png"
+ "radiobutton-indicator-checked-hovered.png"
+ "radiobutton-indicator-checked-hovered@2x.png"
+ "radiobutton-indicator-checked-pressed.png"
+ "radiobutton-indicator-checked-pressed@2x.png"
+ "radiobutton-indicator-checked.png"
+ "radiobutton-indicator-checked@2x.png"
+ "radiobutton-indicator-hovered.png"
+ "radiobutton-indicator-hovered@2x.png"
+ "radiobutton-indicator-pressed.png"
+ "radiobutton-indicator-pressed@2x.png"
+ "radiobutton-indicator.png"
+ "radiobutton-indicator@2x.png"
+ "scrollindicator-handle.png"
+ "scrollindicator-handle@2x.png"
+ "slider-background-horizontal.9.png"
+ "slider-background-horizontal@2x.9.png"
+ "slider-handle-hovered.png"
+ "slider-handle-hovered@2x.png"
+ "slider-handle-pressed.png"
+ "slider-handle-pressed@2x.png"
+ "slider-handle.png"
+ "slider-handle@2x.png"
+ "slider-progress-horizontal-pressed.9.png"
+ "slider-progress-horizontal-pressed@2x.9.png"
+ "slider-progress-horizontal.9.png"
+ "slider-progress-horizontal@2x.9.png"
+ "switchdelegate-background.9.png"
+ "switchdelegate-background@2x.9.png"
+ "switchdelegate-handle-checked-hovered.png"
+ "switchdelegate-handle-checked-hovered@2x.png"
+ "switchdelegate-handle-checked.png"
+ "switchdelegate-handle-checked@2x.png"
+ "switchdelegate-handle-hovered.png"
+ "switchdelegate-handle-hovered@2x.png"
+ "switchdelegate-handle-pressed.png"
+ "switchdelegate-handle-pressed@2x.png"
+ "switchdelegate-handle.png"
+ "switchdelegate-handle@2x.png"
+ "switchdelegate-indicator-pressed.png"
+ "switchdelegate-indicator-pressed@2x.png"
+ "switchdelegate-indicator.png"
+ "switchdelegate-indicator@2x.png"
+ "toolseparator-separator-vertical.9.png"
+ "toolseparator-separator-vertical@2x.9.png"
+)
+
+qt6_add_resources(automotive "imagine-assets"
+ PREFIX
+ "/imagine-assets"
+ BASE
+ "imagine-assets"
+ FILES
+ ${imagine-assets_resource_files}
+)
+set(qml_resource_files
+ "CustomGlow.qml"
+ "FeatureButton.qml"
+ "GlowingLabel.qml"
+ "automotive.qml"
+)
+
+qt6_add_resources(automotive "qml"
+ PREFIX
+ "/qml"
+ BASE
+ "qml"
+ FILES
+ ${qml_resource_files}
+)
+set(qmake_immediate_resource_files
+ "qtquickcontrols2.conf"
+)
+
+qt6_add_resources(automotive "qmake_immediate"
+ PREFIX
+ "/"
+ FILES
+ ${qmake_immediate_resource_files}
+)
+
+install(TARGETS automotive
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt b/examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt
new file mode 100644
index 00000000..28b17c95
--- /dev/null
+++ b/examples/quickcontrols2/imagine/musicplayer/CMakeLists.txt
@@ -0,0 +1,215 @@
+# Generated from musicplayer.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(musicplayer LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quickcontrols2/imagine/musicplayer")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS QuickControls2)
+
+add_qt_gui_executable(musicplayer
+ musicplayer.cpp
+)
+target_link_libraries(musicplayer PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Quick
+ Qt::QuickControls2
+)
+
+
+# Resources:
+set(icons_resource_files
+ "musicplayer/32x32/bluetooth.png"
+ "musicplayer/32x32/cart.png"
+ "musicplayer/32x32/cloud.png"
+ "musicplayer/32x32/favorite.png"
+ "musicplayer/32x32/filter.png"
+ "musicplayer/32x32/folder.png"
+ "musicplayer/32x32/message.png"
+ "musicplayer/32x32/music.png"
+ "musicplayer/32x32/next.png"
+ "musicplayer/32x32/pause.png"
+ "musicplayer/32x32/power.png"
+ "musicplayer/32x32/previous.png"
+ "musicplayer/32x32/repeat.png"
+ "musicplayer/32x32/save.png"
+ "musicplayer/32x32/settings.png"
+ "musicplayer/32x32/shuffle.png"
+ "musicplayer/32x32/stop.png"
+ "musicplayer/32x32@2/bluetooth.png"
+ "musicplayer/32x32@2/cart.png"
+ "musicplayer/32x32@2/cloud.png"
+ "musicplayer/32x32@2/favorite.png"
+ "musicplayer/32x32@2/filter.png"
+ "musicplayer/32x32@2/folder.png"
+ "musicplayer/32x32@2/grid.png"
+ "musicplayer/32x32@2/message.png"
+ "musicplayer/32x32@2/music.png"
+ "musicplayer/32x32@2/next.png"
+ "musicplayer/32x32@2/pause.png"
+ "musicplayer/32x32@2/power.png"
+ "musicplayer/32x32@2/previous.png"
+ "musicplayer/32x32@2/repeat.png"
+ "musicplayer/32x32@2/save.png"
+ "musicplayer/32x32@2/settings.png"
+ "musicplayer/32x32@2/shuffle.png"
+ "musicplayer/32x32@2/stop.png"
+ "musicplayer/index.theme"
+)
+
+qt6_add_resources(musicplayer "icons"
+ PREFIX
+ "/icons"
+ BASE
+ "icons"
+ FILES
+ ${icons_resource_files}
+)
+set(imagine-assets_resource_files
+ "applicationwindow-background.png"
+ "button-background-checked-hovered.9.png"
+ "button-background-checked-hovered@2x.9.png"
+ "button-background-checked.9.png"
+ "button-background-checked@2x.9.png"
+ "button-background-disabled.9.png"
+ "button-background-disabled@2x.9.png"
+ "button-background-hovered.9.png"
+ "button-background-hovered@2x.9.png"
+ "button-background-pressed.9.png"
+ "button-background-pressed@2x.9.png"
+ "button-background.9.png"
+ "button-background@2x.9.png"
+ "combobox-background-hovered.9.png"
+ "combobox-background-hovered@2x.9.png"
+ "combobox-background-open.9.png"
+ "combobox-background-open@2x.9.png"
+ "combobox-background-pressed.9.png"
+ "combobox-background-pressed@2x.9.png"
+ "combobox-background.9.png"
+ "combobox-background@2x.9.png"
+ "combobox-indicator-hovered.png"
+ "combobox-indicator-hovered@2x.png"
+ "combobox-indicator-open.png"
+ "combobox-indicator-open@2x.png"
+ "combobox-indicator-pressed.png"
+ "combobox-indicator-pressed@2x.png"
+ "combobox-indicator.png"
+ "combobox-indicator@2x.png"
+ "combobox-popup.9.png"
+ "combobox-popup@2x.9.png"
+ "dial-background-hovered.png"
+ "dial-background-hovered@2x.png"
+ "dial-background-pressed.png"
+ "dial-background-pressed@2x.png"
+ "dial-background.png"
+ "dial-background@2x.png"
+ "dial-handle-pressed.png"
+ "dial-handle-pressed@2x.png"
+ "dial-handle.png"
+ "dial-handle@2x.png"
+ "frame-background.9.png"
+ "frame-background@2x.9.png"
+ "itemdelegate-background-checked.9.png"
+ "itemdelegate-background-checked@2x.9.png"
+ "itemdelegate-background-disabled.9.png"
+ "itemdelegate-background-disabled@2x.9.png"
+ "itemdelegate-background-hovered.9.png"
+ "itemdelegate-background-hovered@2x.9.png"
+ "itemdelegate-background-pressed.9.png"
+ "itemdelegate-background-pressed@2x.9.png"
+ "itemdelegate-background.9.png"
+ "itemdelegate-background@2x.9.png"
+ "roundbutton-background-checked-hovered.png"
+ "roundbutton-background-checked-hovered@2x.png"
+ "roundbutton-background-checked.png"
+ "roundbutton-background-checked@2x.png"
+ "roundbutton-background-disabled.png"
+ "roundbutton-background-disabled@2x.png"
+ "roundbutton-background-hovered.png"
+ "roundbutton-background-hovered@2x.png"
+ "roundbutton-background-pressed.png"
+ "roundbutton-background-pressed@2x.png"
+ "roundbutton-background.png"
+ "roundbutton-background@2x.png"
+ "scrollbar-handle-interactive-hovered.png"
+ "scrollbar-handle-interactive-hovered@2x.png"
+ "scrollbar-handle-interactive-pressed.png"
+ "scrollbar-handle-interactive-pressed@2x.png"
+ "scrollbar-handle-interactive.png"
+ "scrollbar-handle-interactive@2x.png"
+ "slider-background-horizontal-disabled.9.png"
+ "slider-background-horizontal-disabled@2x.9.png"
+ "slider-background-horizontal.9.png"
+ "slider-background-horizontal@2x.9.png"
+ "slider-background-vertical-disabled.9.png"
+ "slider-background-vertical-disabled@2x.9.png"
+ "slider-background-vertical.9.png"
+ "slider-background-vertical@2x.9.png"
+ "slider-handle-disabled.png"
+ "slider-handle-disabled@2x.png"
+ "slider-handle-hovered.png"
+ "slider-handle-hovered@2x.png"
+ "slider-handle.png"
+ "slider-handle@2x.png"
+ "slider-progress-horizontal.9.png"
+ "slider-progress-horizontal@2x.9.png"
+ "slider-progress-vertical-disabled.9.png"
+ "slider-progress-vertical-disabled@2x.9.png"
+ "slider-progress-vertical.9.png"
+ "slider-progress-vertical@2x.9.png"
+ "textfield-background-disabled.9.png"
+ "textfield-background-disabled@2x.9.png"
+ "textfield-background.9.png"
+ "textfield-background@2x.9.png"
+ "toolbar-background.9.png"
+ "toolbar-background@2x.9.png"
+ "toolbutton-background-checked-hovered.9.png"
+ "toolbutton-background-checked-hovered@2x.9.png"
+ "toolbutton-background-checked.9.png"
+ "toolbutton-background-checked@2x.9.png"
+ "toolbutton-background-hovered.9.png"
+ "toolbutton-background-hovered@2x.9.png"
+ "toolbutton-background-pressed.9.png"
+ "toolbutton-background-pressed@2x.9.png"
+ "toolbutton-background.9.png"
+ "toolbutton-background@2x.9.png"
+ "tooltip-background.9.png"
+ "tooltip-background@2x.9.png"
+)
+
+qt6_add_resources(musicplayer "imagine-assets"
+ PREFIX
+ "/imagine-assets"
+ BASE
+ "imagine-assets"
+ FILES
+ ${imagine-assets_resource_files}
+)
+set(qmake_immediate_resource_files
+ "images/album-cover.jpg"
+ "musicplayer.qml"
+ "qtquickcontrols2.conf"
+)
+
+qt6_add_resources(musicplayer "qmake_immediate"
+ PREFIX
+ "/"
+ FILES
+ ${qmake_immediate_resource_files}
+)
+
+install(TARGETS musicplayer
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/quickcontrols2/sidepanel/CMakeLists.txt b/examples/quickcontrols2/sidepanel/CMakeLists.txt
new file mode 100644
index 00000000..4946dc2d
--- /dev/null
+++ b/examples/quickcontrols2/sidepanel/CMakeLists.txt
@@ -0,0 +1,50 @@
+# Generated from sidepanel.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(sidepanel LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quickcontrols2/sidepanel")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(sidepanel
+ sidepanel.cpp
+)
+target_link_libraries(sidepanel PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Quick
+)
+
+
+# Resources:
+set(qmake_immediate_resource_files
+ "doc/images/qtquickcontrols2-sidepanel-landscape.png"
+ "doc/images/qtquickcontrols2-sidepanel-portrait.png"
+ "images/qt-logo.png"
+ "images/qt-logo@2x.png"
+ "images/qt-logo@3x.png"
+ "images/qt-logo@4x.png"
+ "sidepanel.qml"
+)
+
+qt6_add_resources(sidepanel "qmake_immediate"
+ PREFIX
+ "/"
+ FILES
+ ${qmake_immediate_resource_files}
+)
+
+install(TARGETS sidepanel
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/quickcontrols2/swipetoremove/CMakeLists.txt b/examples/quickcontrols2/swipetoremove/CMakeLists.txt
new file mode 100644
index 00000000..cf23122c
--- /dev/null
+++ b/examples/quickcontrols2/swipetoremove/CMakeLists.txt
@@ -0,0 +1,45 @@
+# Generated from swipetoremove.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(swipetoremove LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quickcontrols2/swipetoremove")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+
+add_qt_gui_executable(swipetoremove
+ swipetoremove.cpp
+)
+target_link_libraries(swipetoremove PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+)
+
+
+# Resources:
+set(qmake_immediate_resource_files
+ "fonts/fontello.ttf"
+ "swipetoremove.qml"
+)
+
+qt6_add_resources(swipetoremove "qmake_immediate"
+ PREFIX
+ "/"
+ FILES
+ ${qmake_immediate_resource_files}
+)
+
+install(TARGETS swipetoremove
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/quickcontrols2/texteditor/CMakeLists.txt b/examples/quickcontrols2/texteditor/CMakeLists.txt
new file mode 100644
index 00000000..9ae1a04d
--- /dev/null
+++ b/examples/quickcontrols2/texteditor/CMakeLists.txt
@@ -0,0 +1,65 @@
+# Generated from texteditor.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(texteditor LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quickcontrols2/texteditor")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS QuickControls2)
+
+add_qt_gui_executable(texteditor
+ documenthandler.cpp documenthandler.h
+ texteditor.cpp
+)
+target_link_libraries(texteditor PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Quick
+ Qt::QuickControls2
+)
+
+
+# Resources:
+set(texteditor_resource_files
+ "+touch/texteditor.html"
+ "fonts/fontello.ttf"
+ "images/qt-logo.png"
+ "qml/+touch/texteditor.qml"
+ "qml/texteditor.qml"
+ "qtquickcontrols2.conf"
+ "texteditor.html"
+)
+
+qt6_add_resources(texteditor "texteditor"
+ PREFIX
+ "/"
+ FILES
+ ${texteditor_resource_files}
+)
+
+if(TARGET Qt::Widgets)
+ target_link_libraries(texteditor PUBLIC
+ Qt::Widgets
+ )
+endif()
+
+if(cross_compile)
+ target_compile_definitions(texteditor PUBLIC
+ QT_EXTRA_FILE_SELECTOR=\\\"touch\\\"
+ )
+endif()
+
+install(TARGETS texteditor
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/quickcontrols2/wearable/CMakeLists.txt b/examples/quickcontrols2/wearable/CMakeLists.txt
new file mode 100644
index 00000000..d0be1111
--- /dev/null
+++ b/examples/quickcontrols2/wearable/CMakeLists.txt
@@ -0,0 +1,196 @@
+# Generated from wearable.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(wearable LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quickcontrols2/wearable")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS QuickControls2)
+
+add_qt_gui_executable(wearable
+ wearable.cpp
+)
+target_link_libraries(wearable PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Quick
+ Qt::QuickControls2
+)
+
+
+# Resources:
+set(wearable_resource_files
+ "icons/wearable/36x36/alarms.png"
+ "icons/wearable/36x36/fitness.png"
+ "icons/wearable/36x36/navigation.png"
+ "icons/wearable/36x36/notifications.png"
+ "icons/wearable/36x36/settings.png"
+ "icons/wearable/36x36/weather.png"
+ "icons/wearable/36x36/worldclock.png"
+ "icons/wearable/36x36@2/alarms.png"
+ "icons/wearable/36x36@2/fitness.png"
+ "icons/wearable/36x36@2/navigation.png"
+ "icons/wearable/36x36@2/notifications.png"
+ "icons/wearable/36x36@2/settings.png"
+ "icons/wearable/36x36@2/weather.png"
+ "icons/wearable/36x36@2/worldclock.png"
+ "icons/wearable/index.theme"
+ "images/back.png"
+ "images/back@2x.png"
+ "images/background-dark.png"
+ "images/background-light.png"
+ "images/home.png"
+ "images/home@2x.png"
+ "qml/Alarms/AlarmsPage.qml"
+ "qml/DemoMode.qml"
+ "qml/DemoModeIndicator.qml"
+ "qml/Fitness/FitnessPage.qml"
+ "qml/Fitness/fitness.js"
+ "qml/Fitness/images/man-running-dark.png"
+ "qml/Fitness/images/man-running-dark@2x.png"
+ "qml/Fitness/images/man-running-light.png"
+ "qml/Fitness/images/man-running-light@2x.png"
+ "qml/Fitness/images/man-walking-dark.png"
+ "qml/Fitness/images/man-walking-dark@2x.png"
+ "qml/Fitness/images/man-walking-light.png"
+ "qml/Fitness/images/man-walking-light@2x.png"
+ "qml/LauncherPage.qml"
+ "qml/NaviButton.qml"
+ "qml/Navigation/NavigationPage.qml"
+ "qml/Navigation/RouteElement.qml"
+ "qml/Navigation/images/end.png"
+ "qml/Navigation/images/end@2x.png"
+ "qml/Navigation/images/leftturn-dark.png"
+ "qml/Navigation/images/leftturn-dark@2x.png"
+ "qml/Navigation/images/leftturn-light.png"
+ "qml/Navigation/images/leftturn-light@2x.png"
+ "qml/Navigation/images/navigation-dark.png"
+ "qml/Navigation/images/navigation-dark@2x.png"
+ "qml/Navigation/images/navigation-light.png"
+ "qml/Navigation/images/navigation-light@2x.png"
+ "qml/Navigation/images/rightturn-dark.png"
+ "qml/Navigation/images/rightturn-dark@2x.png"
+ "qml/Navigation/images/rightturn-light.png"
+ "qml/Navigation/images/rightturn-light@2x.png"
+ "qml/Navigation/images/start.png"
+ "qml/Navigation/images/start@2x.png"
+ "qml/Navigation/images/straight-dark.png"
+ "qml/Navigation/images/straight-dark@2x.png"
+ "qml/Navigation/images/straight-light.png"
+ "qml/Navigation/images/straight-light@2x.png"
+ "qml/Navigation/images/uturn.png"
+ "qml/Navigation/images/uturn@2x.png"
+ "qml/Navigation/navigation.js"
+ "qml/Navigation/walk_route.json"
+ "qml/Notifications/NotificationsPage.qml"
+ "qml/Notifications/images/avatarf-dark.png"
+ "qml/Notifications/images/avatarf-dark@2x.png"
+ "qml/Notifications/images/avatarf-light.png"
+ "qml/Notifications/images/avatarf-light@2x.png"
+ "qml/Notifications/images/avatarm-dark.png"
+ "qml/Notifications/images/avatarm-dark@2x.png"
+ "qml/Notifications/images/avatarm-light.png"
+ "qml/Notifications/images/avatarm-light@2x.png"
+ "qml/Notifications/images/missedcall-dark.png"
+ "qml/Notifications/images/missedcall-dark@2x.png"
+ "qml/Notifications/images/missedcall-light.png"
+ "qml/Notifications/images/missedcall-light@2x.png"
+ "qml/Notifications/notifications.js"
+ "qml/Settings/SettingsPage.qml"
+ "qml/Settings/images/bluetooth-dark.png"
+ "qml/Settings/images/bluetooth-dark@2x.png"
+ "qml/Settings/images/bluetooth-light.png"
+ "qml/Settings/images/bluetooth-light@2x.png"
+ "qml/Settings/images/brightness-dark.png"
+ "qml/Settings/images/brightness-dark@2x.png"
+ "qml/Settings/images/brightness-light.png"
+ "qml/Settings/images/brightness-light@2x.png"
+ "qml/Settings/images/demo-mode-dark.png"
+ "qml/Settings/images/demo-mode-dark@2x.png"
+ "qml/Settings/images/demo-mode-light.png"
+ "qml/Settings/images/demo-mode-light@2x.png"
+ "qml/Settings/images/demo-mode-white.png"
+ "qml/Settings/images/demo-mode-white@2x.png"
+ "qml/Settings/images/theme-dark.png"
+ "qml/Settings/images/theme-dark@2x.png"
+ "qml/Settings/images/theme-light.png"
+ "qml/Settings/images/theme-light@2x.png"
+ "qml/Settings/images/wifi-dark.png"
+ "qml/Settings/images/wifi-dark@2x.png"
+ "qml/Settings/images/wifi-light.png"
+ "qml/Settings/images/wifi-light@2x.png"
+ "qml/Style/PageIndicator.qml"
+ "qml/Style/Slider.qml"
+ "qml/Style/Switch.qml"
+ "qml/Style/UIStyle.qml"
+ "qml/Style/qmldir"
+ "qml/SwipeViewPage.qml"
+ "qml/Weather/WeatherPage.qml"
+ "qml/Weather/images/humidity-dark.png"
+ "qml/Weather/images/humidity-dark@2x.png"
+ "qml/Weather/images/humidity-light.png"
+ "qml/Weather/images/humidity-light@2x.png"
+ "qml/Weather/images/pressure-dark.png"
+ "qml/Weather/images/pressure-dark@2x.png"
+ "qml/Weather/images/pressure-light.png"
+ "qml/Weather/images/pressure-light@2x.png"
+ "qml/Weather/images/sunrise-dark.png"
+ "qml/Weather/images/sunrise-dark@2x.png"
+ "qml/Weather/images/sunrise-light.png"
+ "qml/Weather/images/sunrise-light@2x.png"
+ "qml/Weather/images/sunset-dark.png"
+ "qml/Weather/images/sunset-dark@2x.png"
+ "qml/Weather/images/sunset-light.png"
+ "qml/Weather/images/sunset-light@2x.png"
+ "qml/Weather/images/temperature-dark.png"
+ "qml/Weather/images/temperature-dark@2x.png"
+ "qml/Weather/images/temperature-light.png"
+ "qml/Weather/images/temperature-light@2x.png"
+ "qml/Weather/images/wind-dark.png"
+ "qml/Weather/images/wind-dark@2x.png"
+ "qml/Weather/images/wind-light.png"
+ "qml/Weather/images/wind-light@2x.png"
+ "qml/Weather/weather.js"
+ "qml/Weather/weather.json"
+ "qml/WorldClock/Clock.qml"
+ "qml/WorldClock/WorldClockPage.qml"
+ "qml/WorldClock/images/center.png"
+ "qml/WorldClock/images/center@2x.png"
+ "qml/WorldClock/images/second.png"
+ "qml/WorldClock/images/second@2x.png"
+ "qml/WorldClock/images/swissdaydial.png"
+ "qml/WorldClock/images/swissdaydial@2x.png"
+ "qml/WorldClock/images/swissdayhour.png"
+ "qml/WorldClock/images/swissdayhour@2x.png"
+ "qml/WorldClock/images/swissdayminute.png"
+ "qml/WorldClock/images/swissdayminute@2x.png"
+ "qml/WorldClock/images/swissnightdial.png"
+ "qml/WorldClock/images/swissnightdial@2x.png"
+ "qml/WorldClock/images/swissnighthour.png"
+ "qml/WorldClock/images/swissnighthour@2x.png"
+ "qml/WorldClock/images/swissnightminute.png"
+ "qml/WorldClock/images/swissnightminute@2x.png"
+ "wearable.qml"
+)
+
+qt6_add_resources(wearable "wearable"
+ PREFIX
+ "/"
+ FILES
+ ${wearable_resource_files}
+)
+
+install(TARGETS wearable
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)