summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt21
-rw-r--r--coin/module_config.yaml12
-rw-r--r--doc/CMakeLists.txt7
-rw-r--r--examples/CMakeLists.txt7
-rw-r--r--examples/demos/CMakeLists.txt20
-rw-r--r--examples/demos/calqlatr/CMakeLists.txt53
-rw-r--r--examples/demos/clocks/CMakeLists.txt56
-rw-r--r--examples/demos/coffee/CMakeLists.txt84
-rw-r--r--examples/demos/maroon/CMakeLists.txt118
-rw-r--r--examples/demos/photosurface/CMakeLists.txt63
-rw-r--r--examples/demos/photoviewer/CMakeLists.txt68
-rw-r--r--examples/demos/rssnews/CMakeLists.txt70
-rw-r--r--examples/demos/samegame/CMakeLists.txt116
-rw-r--r--examples/demos/stocqt/CMakeLists.txt83
-rw-r--r--examples/demos/tweetsearch/CMakeLists.txt60
-rw-r--r--examples/tutorials/alarms/CMakeLists.txt49
-rw-r--r--tests/CMakeLists.txt7
-rw-r--r--tests/auto/CMakeLists.txt8
-rw-r--r--tests/auto/qml/CMakeLists.txt5
-rw-r--r--tests/auto/qml/qqmlparser/CMakeLists.txt23
-rw-r--r--tests/auto/quick/CMakeLists.txt6
-rw-r--r--tests/auto/quick/examples/CMakeLists.txt29
22 files changed, 965 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 00000000..19dcc7ef
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from qtdoc.pro.
+
+cmake_minimum_required(VERSION 3.15.0)
+
+project(QtDoc
+ VERSION 6.0.0
+ DESCRIPTION "Qt Documentation and examples" # special case
+ HOMEPAGE_URL "https://qt.io/"
+ LANGUAGES CXX C
+)
+
+find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Gui) # special case
+find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Qml Quick Test) # special case for tests
+
+# special case begin
+qt_build_repo_begin()
+add_subdirectory(examples)
+add_subdirectory(doc)
+add_subdirectory(tests)
+qt_build_repo_end()
+# special case end
diff --git a/coin/module_config.yaml b/coin/module_config.yaml
new file mode 100644
index 00000000..7f31a554
--- /dev/null
+++ b/coin/module_config.yaml
@@ -0,0 +1,12 @@
+version: 2
+accept_configuration:
+ condition: property
+ property: features
+ not_contains_value: Disable
+
+instructions:
+ Build:
+ - !include "{{qt/qtbase}}/coin_module_build_template_v2.yaml"
+
+ Test:
+ - !include "{{qt/qtbase}}/coin_module_test_template_v2.yaml"
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
new file mode 100644
index 00000000..b0fc0b8b
--- /dev/null
+++ b/doc/CMakeLists.txt
@@ -0,0 +1,7 @@
+# special case skip regeneration
+
+add_library(Doc INTERFACE)
+
+qt_add_docs(Doc
+ config/qtdoc.qdocconf
+)
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
new file mode 100644
index 00000000..60d38152
--- /dev/null
+++ b/examples/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from examples.pro.
+
+qt_examples_build_begin()
+
+add_subdirectory(demos)
+
+qt_examples_build_end()
diff --git a/examples/demos/CMakeLists.txt b/examples/demos/CMakeLists.txt
new file mode 100644
index 00000000..b2f17fc2
--- /dev/null
+++ b/examples/demos/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Generated from demos.pro.
+
+if(TARGET Qt::Quick)
+ add_subdirectory(samegame)
+ add_subdirectory(calqlatr)
+ add_subdirectory(clocks)
+ add_subdirectory(tweetsearch)
+ add_subdirectory(maroon)
+ add_subdirectory(photosurface)
+ add_subdirectory(stocqt)
+endif()
+if(TARGET Qt::Quick AND TARGET Qt::QuickControls2)
+ add_subdirectory(coffee)
+endif()
+if(TARGET Qt::Quick AND TARGET Qt::XmlPatterns)
+ add_subdirectory(rssnews)
+endif()
+if(TARGET Qt::Quick AND TARGET Qt::XmlPatterns AND TARGET quickcontrols)
+ add_subdirectory(photoviewer)
+endif()
diff --git a/examples/demos/calqlatr/CMakeLists.txt b/examples/demos/calqlatr/CMakeLists.txt
new file mode 100644
index 00000000..678259cf
--- /dev/null
+++ b/examples/demos/calqlatr/CMakeLists.txt
@@ -0,0 +1,53 @@
+# Generated from calqlatr.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(calqlatr LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/demos/calqlatr")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(calqlatr
+ main.cpp
+)
+target_link_libraries(calqlatr PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(calqlatr_resource_files
+ "calqlatr.qml"
+ "content/Button.qml"
+ "content/Display.qml"
+ "content/NumberPad.qml"
+ "content/calculator.js"
+ "content/images/paper-edge-left.png"
+ "content/images/paper-edge-right.png"
+ "content/images/paper-grip.png"
+)
+
+qt6_add_resources(calqlatr "calqlatr"
+ PREFIX
+ "/demos/calqlatr"
+ FILES
+ ${calqlatr_resource_files}
+)
+
+install(TARGETS calqlatr
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/demos/clocks/CMakeLists.txt b/examples/demos/clocks/CMakeLists.txt
new file mode 100644
index 00000000..c3385e9d
--- /dev/null
+++ b/examples/demos/clocks/CMakeLists.txt
@@ -0,0 +1,56 @@
+# Generated from clocks.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(clocks LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/demos/clocks")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(clocks
+ main.cpp
+)
+target_link_libraries(clocks PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(clocks_resource_files
+ "clocks.qml"
+ "content/Clock.qml"
+ "content/arrow.png"
+ "content/background.png"
+ "content/center.png"
+ "content/clock-night.png"
+ "content/clock.png"
+ "content/hour.png"
+ "content/minute.png"
+ "content/quit.png"
+ "content/second.png"
+)
+
+qt6_add_resources(clocks "clocks"
+ PREFIX
+ "/demos/clocks"
+ FILES
+ ${clocks_resource_files}
+)
+
+install(TARGETS clocks
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/demos/coffee/CMakeLists.txt b/examples/demos/coffee/CMakeLists.txt
new file mode 100644
index 00000000..a08cfb93
--- /dev/null
+++ b/examples/demos/coffee/CMakeLists.txt
@@ -0,0 +1,84 @@
+# Generated from coffee.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(coffee LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(coffee
+ main.cpp
+)
+target_compile_definitions(coffee PUBLIC
+ QT_DEPRECATED_WARNINGS
+)
+
+target_link_libraries(coffee PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(qml_resource_files
+ "ApplicationFlow.qml"
+ "ApplicationFlowForm.ui.qml"
+ "Brewing.qml"
+ "BrewingForm.ui.qml"
+ "ChoosingCoffee.ui.qml"
+ "CoffeeButton.qml"
+ "CupForm.ui.qml"
+ "EmptyCupForm.ui.qml"
+ "NavigationButton.ui.qml"
+ "SideBar.qml"
+ "SideBarForm.ui.qml"
+ "images/cup structure/coffee_cup_large.png"
+ "images/cup structure/coffee_cup_outline.png"
+ "images/cup structure/cup elements/coffee_cup_back.png"
+ "images/cup structure/cup elements/coffee_cup_coverplate.png"
+ "images/cup structure/cup elements/coffee_cup_front.png"
+ "images/cup structure/liquids/liquid_coffee.png"
+ "images/cup structure/liquids/liquid_foam.png"
+ "images/cup structure/liquids/liquid_milk.png"
+ "images/icons/coffees/Americano.png"
+ "images/icons/coffees/Espresso.png"
+ "images/icons/coffees/Latte.png"
+ "images/icons/coffees/Macchiato.png"
+ "images/icons/coffees/cappucino.png"
+ "images/icons/contents/coffee.png"
+ "images/icons/contents/milk.png"
+ "images/icons/contents/sugar.png"
+ "images/ui controls/buttons/back/white.png"
+ "images/ui controls/buttons/go/white.png"
+ "images/ui controls/line.png"
+ "imports/Coffee/Constants.qml"
+ "imports/Coffee/TitilliumWeb-Regular.ttf"
+ "imports/Coffee/qmldir"
+ "main.qml"
+ "qtquickcontrols2.conf"
+)
+
+qt6_add_resources(coffee "qml"
+ PREFIX
+ "/"
+ FILES
+ ${qml_resource_files}
+)
+
+install(TARGETS coffee
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/demos/maroon/CMakeLists.txt b/examples/demos/maroon/CMakeLists.txt
new file mode 100644
index 00000000..1c4ec8bb
--- /dev/null
+++ b/examples/demos/maroon/CMakeLists.txt
@@ -0,0 +1,118 @@
+# Generated from maroon.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(maroon LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/demos/maroon")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(maroon
+ main.cpp
+)
+target_link_libraries(maroon PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(maroon_resource_files
+ "content/BuildButton.qml"
+ "content/GameCanvas.qml"
+ "content/GameOverScreen.qml"
+ "content/InfoBar.qml"
+ "content/NewGameScreen.qml"
+ "content/SoundEffect.qml"
+ "content/audio/bomb-action.wav"
+ "content/audio/catch-action.wav"
+ "content/audio/catch.wav"
+ "content/audio/currency.wav"
+ "content/audio/factory-action.wav"
+ "content/audio/melee-action.wav"
+ "content/audio/projectile-action.wav"
+ "content/audio/shooter-action.wav"
+ "content/gfx/background.png"
+ "content/gfx/bomb-action.png"
+ "content/gfx/bomb-idle.png"
+ "content/gfx/bomb.png"
+ "content/gfx/button-help.png"
+ "content/gfx/button-play.png"
+ "content/gfx/catch-action.png"
+ "content/gfx/catch.png"
+ "content/gfx/cloud.png"
+ "content/gfx/currency.png"
+ "content/gfx/dialog-bomb.png"
+ "content/gfx/dialog-factory.png"
+ "content/gfx/dialog-melee.png"
+ "content/gfx/dialog-pointer.png"
+ "content/gfx/dialog-shooter.png"
+ "content/gfx/dialog.png"
+ "content/gfx/factory-action.png"
+ "content/gfx/factory-idle.png"
+ "content/gfx/factory.png"
+ "content/gfx/grid.png"
+ "content/gfx/help.png"
+ "content/gfx/lifes.png"
+ "content/gfx/logo-bubble.png"
+ "content/gfx/logo-fish.png"
+ "content/gfx/logo.png"
+ "content/gfx/melee-action.png"
+ "content/gfx/melee-idle.png"
+ "content/gfx/melee.png"
+ "content/gfx/mob-idle.png"
+ "content/gfx/mob.png"
+ "content/gfx/points.png"
+ "content/gfx/projectile-action.png"
+ "content/gfx/projectile.png"
+ "content/gfx/scores.png"
+ "content/gfx/shooter-action.png"
+ "content/gfx/shooter-idle.png"
+ "content/gfx/shooter.png"
+ "content/gfx/sunlight.png"
+ "content/gfx/text-1.png"
+ "content/gfx/text-2.png"
+ "content/gfx/text-3.png"
+ "content/gfx/text-blank.png"
+ "content/gfx/text-gameover.png"
+ "content/gfx/text-go.png"
+ "content/gfx/wave.png"
+ "content/logic.js"
+ "content/mobs/MobBase.qml"
+ "content/towers/Bomb.qml"
+ "content/towers/Factory.qml"
+ "content/towers/Melee.qml"
+ "content/towers/Ranged.qml"
+ "content/towers/TowerBase.qml"
+ "maroon.qml"
+)
+
+qt6_add_resources(maroon "maroon"
+ PREFIX
+ "/demos/maroon"
+ FILES
+ ${maroon_resource_files}
+)
+
+if(TARGET Qt::Multimedia)
+ target_link_libraries(maroon PUBLIC
+ Qt::Multimedia
+ )
+endif()
+
+install(TARGETS maroon
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/demos/photosurface/CMakeLists.txt b/examples/demos/photosurface/CMakeLists.txt
new file mode 100644
index 00000000..df773743
--- /dev/null
+++ b/examples/demos/photosurface/CMakeLists.txt
@@ -0,0 +1,63 @@
+# Generated from photosurface.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(photosurface LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/demos/photosurface")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(photosurface
+ main.cpp
+)
+target_link_libraries(photosurface PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(photosurface_resource_files
+ "photosurface.qml"
+ "resources/folder.png"
+)
+
+qt6_add_resources(photosurface "photosurface"
+ PREFIX
+ "/"
+ FILES
+ ${photosurface_resource_files}
+)
+
+if(ANDROID AND TARGET Qt::AndroidExtras)
+ target_compile_definitions(photosurface PUBLIC
+ REQUEST_PERMISSIONS_ON_ANDROID
+ )
+
+ target_link_libraries(photosurface PUBLIC
+ Qt::AndroidExtras
+ )
+endif()
+
+if(TARGET Qt::Widgets)
+ target_link_libraries(photosurface PUBLIC
+ Qt::Widgets
+ )
+endif()
+
+install(TARGETS photosurface
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/demos/photoviewer/CMakeLists.txt b/examples/demos/photoviewer/CMakeLists.txt
new file mode 100644
index 00000000..a857a1dd
--- /dev/null
+++ b/examples/demos/photoviewer/CMakeLists.txt
@@ -0,0 +1,68 @@
+# Generated from photoviewer.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(photoviewer LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/demos/photoviewer")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS XmlPatterns)
+
+add_qt_gui_executable(photoviewer
+ main.cpp
+)
+target_link_libraries(photoviewer PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+ Qt::XmlPatterns
+)
+
+
+# Resources:
+set(qmake_immediate_resource_files
+ "PhotoViewerCore/AlbumDelegate.qml"
+ "PhotoViewerCore/BusyIndicator.qml"
+ "PhotoViewerCore/Button.qml"
+ "PhotoViewerCore/EditableButton.qml"
+ "PhotoViewerCore/PhotoDelegate.qml"
+ "PhotoViewerCore/ProgressBar.qml"
+ "PhotoViewerCore/RssModel.qml"
+ "PhotoViewerCore/Tag.qml"
+ "PhotoViewerCore/images/box-shadow.png"
+ "PhotoViewerCore/images/busy.png"
+ "PhotoViewerCore/images/cardboard.png"
+ "PhotoViewerCore/script/script.mjs"
+ "main.qml"
+)
+
+qt6_add_resources(photoviewer "qmake_immediate"
+ PREFIX
+ "/"
+ FILES
+ ${qmake_immediate_resource_files}
+)
+
+if(lupdate_only)
+ target_sources(photoviewer PUBLIC
+ *.qml
+ PhotoViewerCore/*.qml
+ PhotoViewerCore/script/*.js
+ )
+endif()
+
+install(TARGETS photoviewer
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/demos/rssnews/CMakeLists.txt b/examples/demos/rssnews/CMakeLists.txt
new file mode 100644
index 00000000..90b7e0bb
--- /dev/null
+++ b/examples/demos/rssnews/CMakeLists.txt
@@ -0,0 +1,70 @@
+# Generated from rssnews.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(rssnews LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/demos/rssnews")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Xml)
+find_package(Qt6 COMPONENTS XmlPatterns)
+
+add_qt_gui_executable(rssnews
+ main.cpp
+)
+target_link_libraries(rssnews PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+ Qt::Xml
+ Qt::XmlPatterns
+)
+
+
+# Resources:
+set(rssnews_resource_files
+ "content/BusyIndicator.qml"
+ "content/CategoryDelegate.qml"
+ "content/NewsDelegate.qml"
+ "content/RssFeeds.qml"
+ "content/ScrollBar.qml"
+ "content/images/Asia.jpg"
+ "content/images/Business.jpg"
+ "content/images/Entertainment.jpg"
+ "content/images/Europe.jpg"
+ "content/images/Health.jpg"
+ "content/images/Politics.jpg"
+ "content/images/Science.jpg"
+ "content/images/Sports.jpg"
+ "content/images/Technology.jpg"
+ "content/images/TopStories.jpg"
+ "content/images/USNational.jpg"
+ "content/images/World.jpg"
+ "content/images/btn_close.png"
+ "content/images/busy.png"
+ "content/images/scrollbar.png"
+ "rssnews.qml"
+)
+
+qt6_add_resources(rssnews "rssnews"
+ PREFIX
+ "/demos/rssnews"
+ FILES
+ ${rssnews_resource_files}
+)
+
+install(TARGETS rssnews
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/demos/samegame/CMakeLists.txt b/examples/demos/samegame/CMakeLists.txt
new file mode 100644
index 00000000..eeeaffdd
--- /dev/null
+++ b/examples/demos/samegame/CMakeLists.txt
@@ -0,0 +1,116 @@
+# Generated from samegame.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(samegame LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/demos/samegame")
+
+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(samegame
+ main.cpp
+)
+target_link_libraries(samegame PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+ Qt::Sql
+)
+
+
+# Resources:
+set(samegame_resource_files
+ "content/Block.qml"
+ "content/BlockEmitter.qml"
+ "content/Button.qml"
+ "content/GameArea.qml"
+ "content/LogoAnimation.qml"
+ "content/MenuEmitter.qml"
+ "content/PaintEmitter.qml"
+ "content/PrimaryPack.qml"
+ "content/PuzzleBlock.qml"
+ "content/SamegameText.qml"
+ "content/Settings.qml"
+ "content/SimpleBlock.qml"
+ "content/SmokeText.qml"
+ "content/gfx/background-puzzle.png"
+ "content/gfx/background.png"
+ "content/gfx/bar.png"
+ "content/gfx/blue-puzzle.png"
+ "content/gfx/blue.png"
+ "content/gfx/bubble-highscore.png"
+ "content/gfx/bubble-puzzle.png"
+ "content/gfx/but-game-1.png"
+ "content/gfx/but-game-2.png"
+ "content/gfx/but-game-3.png"
+ "content/gfx/but-game-4.png"
+ "content/gfx/but-game-new.png"
+ "content/gfx/but-menu.png"
+ "content/gfx/but-puzzle-next.png"
+ "content/gfx/but-quit.png"
+ "content/gfx/green-puzzle.png"
+ "content/gfx/green.png"
+ "content/gfx/icon-fail.png"
+ "content/gfx/icon-ok.png"
+ "content/gfx/icon-time.png"
+ "content/gfx/logo-a.png"
+ "content/gfx/logo-e.png"
+ "content/gfx/logo-g.png"
+ "content/gfx/logo-m.png"
+ "content/gfx/logo-s.png"
+ "content/gfx/logo.png"
+ "content/gfx/particle-brick.png"
+ "content/gfx/particle-paint.png"
+ "content/gfx/particle-smoke.png"
+ "content/gfx/red-puzzle.png"
+ "content/gfx/red.png"
+ "content/gfx/text-highscore-new.png"
+ "content/gfx/text-highscore.png"
+ "content/gfx/text-no-winner.png"
+ "content/gfx/text-p1-go.png"
+ "content/gfx/text-p1-won.png"
+ "content/gfx/text-p1.png"
+ "content/gfx/text-p2-go.png"
+ "content/gfx/text-p2-won.png"
+ "content/gfx/text-p2.png"
+ "content/gfx/yellow-puzzle.png"
+ "content/gfx/yellow.png"
+ "content/levels/TemplateBase.qml"
+ "content/levels/level0.qml"
+ "content/levels/level1.qml"
+ "content/levels/level2.qml"
+ "content/levels/level3.qml"
+ "content/levels/level4.qml"
+ "content/levels/level5.qml"
+ "content/levels/level6.qml"
+ "content/levels/level7.qml"
+ "content/levels/level8.qml"
+ "content/levels/level9.qml"
+ "content/qmldir"
+ "content/samegame.js"
+ "samegame.qml"
+)
+
+qt6_add_resources(samegame "samegame"
+ PREFIX
+ "/demos/samegame"
+ FILES
+ ${samegame_resource_files}
+)
+
+install(TARGETS samegame
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/demos/stocqt/CMakeLists.txt b/examples/demos/stocqt/CMakeLists.txt
new file mode 100644
index 00000000..4c3bb56e
--- /dev/null
+++ b/examples/demos/stocqt/CMakeLists.txt
@@ -0,0 +1,83 @@
+# Generated from stocqt.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(stocqt LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/demos/stocqt")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(stocqt
+ main.cpp
+)
+target_link_libraries(stocqt PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(stocqt_resource_files
+ "content/+windows/Settings.qml"
+ "content/Banner.qml"
+ "content/Button.qml"
+ "content/CheckBox.qml"
+ "content/Settings.qml"
+ "content/StockChart.qml"
+ "content/StockInfo.qml"
+ "content/StockListDelegate.qml"
+ "content/StockListModel.qml"
+ "content/StockListView.qml"
+ "content/StockModel.qml"
+ "content/StockSettingsPanel.qml"
+ "content/StockView.qml"
+ "content/data/AAPL.csv"
+ "content/data/ADSK.csv"
+ "content/data/AMD.csv"
+ "content/data/AMZN.csv"
+ "content/data/CSCO.csv"
+ "content/data/EA.csv"
+ "content/data/EBAY.csv"
+ "content/data/FB.csv"
+ "content/data/GOOG.csv"
+ "content/data/GOOGL.csv"
+ "content/data/INTC.csv"
+ "content/data/MSFT.csv"
+ "content/data/NCLH.csv"
+ "content/data/NFLX.csv"
+ "content/data/NTAP.csv"
+ "content/data/NVDA.csv"
+ "content/data/PYPL.csv"
+ "content/data/QCOM.csv"
+ "content/data/TSLA.csv"
+ "content/data/TXN.csv"
+ "content/images/icon-left-arrow.png"
+ "content/images/wheel-touch.png"
+ "content/images/wheel.png"
+ "content/qmldir"
+ "stocqt.qml"
+)
+
+qt6_add_resources(stocqt "stocqt"
+ PREFIX
+ "/demos/stocqt"
+ FILES
+ ${stocqt_resource_files}
+)
+
+install(TARGETS stocqt
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/demos/tweetsearch/CMakeLists.txt b/examples/demos/tweetsearch/CMakeLists.txt
new file mode 100644
index 00000000..c6570058
--- /dev/null
+++ b/examples/demos/tweetsearch/CMakeLists.txt
@@ -0,0 +1,60 @@
+# Generated from tweetsearch.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(tweetsearch LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/demos/tweetsearch")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS Qml)
+
+add_qt_gui_executable(tweetsearch
+ main.cpp
+)
+target_link_libraries(tweetsearch PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(qmake_content_resource_files
+ "content/FlipBar.qml"
+ "content/LineInput.qml"
+ "content/ListFooter.qml"
+ "content/ListHeader.qml"
+ "content/SearchDelegate.qml"
+ "content/TweetDelegate.qml"
+ "content/TweetsModel.qml"
+ "content/resources/anonymous.png"
+ "content/resources/bird-anim-sprites.png"
+ "content/resources/icon-clear.png"
+ "content/resources/icon-loading.png"
+ "content/resources/icon-refresh.png"
+ "content/resources/icon-search.png"
+ "content/tweetsearch.mjs"
+ "tweetsearch.qml"
+)
+
+qt6_add_resources(tweetsearch "qmake_content"
+ PREFIX
+ "/demos/tweetsearch"
+ FILES
+ ${qmake_content_resource_files}
+)
+
+install(TARGETS tweetsearch
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/tutorials/alarms/CMakeLists.txt b/examples/tutorials/alarms/CMakeLists.txt
new file mode 100644
index 00000000..797f5a52
--- /dev/null
+++ b/examples/tutorials/alarms/CMakeLists.txt
@@ -0,0 +1,49 @@
+# Generated from alarms.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(alarms LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/demos/alarms")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(alarms
+ main.cpp
+)
+target_link_libraries(alarms PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Quick
+)
+
+
+# Resources:
+set(qml_resource_files
+ "AlarmDelegate.qml"
+ "AlarmDialog.qml"
+ "AlarmModel.qml"
+ "TumblerDelegate.qml"
+ "main.qml"
+ "qtquickcontrols2.conf"
+)
+
+qt6_add_resources(alarms "qml"
+ PREFIX
+ "/"
+ FILES
+ ${qml_resource_files}
+)
+
+install(TARGETS alarms
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644
index 00000000..22141371
--- /dev/null
+++ b/tests/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from tests.pro.
+
+if(QT_BUILD_STANDALONE_TESTS)
+ # Add qt_find_package calls for extra dependencies that need to be found when building
+ # the standalone tests here.
+endif()
+qt_build_tests()
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
new file mode 100644
index 00000000..61f9a2de
--- /dev/null
+++ b/tests/auto/CMakeLists.txt
@@ -0,0 +1,8 @@
+# Generated from auto.pro.
+
+if(TARGET Qt::Quick)
+ add_subdirectory(quick)
+endif()
+if(TARGET Qt::Qml)
+ add_subdirectory(qml)
+endif()
diff --git a/tests/auto/qml/CMakeLists.txt b/tests/auto/qml/CMakeLists.txt
new file mode 100644
index 00000000..663dd8d4
--- /dev/null
+++ b/tests/auto/qml/CMakeLists.txt
@@ -0,0 +1,5 @@
+# Generated from qml.pro.
+
+if(QT_FEATURE_private_tests)
+ add_subdirectory(qqmlparser)
+endif()
diff --git a/tests/auto/qml/qqmlparser/CMakeLists.txt b/tests/auto/qml/qqmlparser/CMakeLists.txt
new file mode 100644
index 00000000..7c788780
--- /dev/null
+++ b/tests/auto/qml/qqmlparser/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Generated from qqmlparser.pro.
+
+#####################################################################
+## tst_qqmlparser Test:
+#####################################################################
+
+qt_add_test(tst_qqmlparser
+ SOURCES
+ tst_qqmlparser.cpp
+ DEFINES
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\"
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::QmlPrivate
+)
+
+## Scopes:
+#####################################################################
+
+qt_extend_target(tst_qqmlparser CONDITION CMAKE_CROSSCOMPILING
+ DEFINES
+ QTEST_CROSS_COMPILED
+)
diff --git a/tests/auto/quick/CMakeLists.txt b/tests/auto/quick/CMakeLists.txt
new file mode 100644
index 00000000..10b8776a
--- /dev/null
+++ b/tests/auto/quick/CMakeLists.txt
@@ -0,0 +1,6 @@
+# Generated from quick.pro.
+
+# special case begin
+add_subdirectory(examples)
+# special case end
+
diff --git a/tests/auto/quick/examples/CMakeLists.txt b/tests/auto/quick/examples/CMakeLists.txt
new file mode 100644
index 00000000..15d74848
--- /dev/null
+++ b/tests/auto/quick/examples/CMakeLists.txt
@@ -0,0 +1,29 @@
+# Generated from examples.pro.
+
+#####################################################################
+## tst_examples Test:
+#####################################################################
+
+qt_add_test(tst_examples
+ SOURCES
+ tst_examples.cpp
+ DEFINES
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}\\\"
+ PUBLIC_LIBRARIES
+ Qt::CorePrivate
+ Qt::Gui
+ Qt::GuiPrivate
+ Qt::QmlPrivate
+ Qt::QuickPrivate
+)
+
+#### Keys ignored in scope 1:.:.:examples.pro:<TRUE>:
+# testcase.timeout = "400"
+
+## Scopes:
+#####################################################################
+
+qt_extend_target(tst_examples CONDITION NOT TARGET Qt::XmlPatterns
+ DEFINES
+ QT_NO_XMLPATTERNS
+)