aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-03-12 15:27:58 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-03-12 15:28:15 +0100
commit8592ae4096f3f9c2b08b87ad2fcbbbfadf75f2d7 (patch)
treea757c1d80ec77952eae2cc4de5d89c01f14760fc /examples/quick/scenegraph
parente7decc7637e9eb7e66a0d19705090f18488028c0 (diff)
parent14492ecee2e34843efd3ef070503a43a48552055 (diff)
Merge remote-tracking branch 'origin/wip/cmake' into dev
Conflicts: dependencies.yaml Change-Id: Ifff48b9d0e7962d481e63c49399e2d304e1011e5
Diffstat (limited to 'examples/quick/scenegraph')
-rw-r--r--examples/quick/scenegraph/.prev_CMakeLists.txt25
-rw-r--r--examples/quick/scenegraph/CMakeLists.txt24
-rw-r--r--examples/quick/scenegraph/customgeometry/CMakeLists.txt53
-rw-r--r--examples/quick/scenegraph/d3d11underqml/CMakeLists.txt59
-rw-r--r--examples/quick/scenegraph/fboitem/CMakeLists.txt62
-rw-r--r--examples/quick/scenegraph/graph/CMakeLists.txt60
-rw-r--r--examples/quick/scenegraph/metaltextureimport/CMakeLists.txt64
-rw-r--r--examples/quick/scenegraph/metalunderqml/CMakeLists.txt64
-rw-r--r--examples/quick/scenegraph/openglunderqml/CMakeLists.txt55
-rw-r--r--examples/quick/scenegraph/rendernode/CMakeLists.txt70
-rw-r--r--examples/quick/scenegraph/sgengine/CMakeLists.txt116
-rw-r--r--examples/quick/scenegraph/simplematerial/CMakeLists.txt53
-rw-r--r--examples/quick/scenegraph/textureinthread/CMakeLists.txt61
-rw-r--r--examples/quick/scenegraph/threadedanimation/CMakeLists.txt56
-rw-r--r--examples/quick/scenegraph/twotextureproviders/CMakeLists.txt61
-rw-r--r--examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt57
16 files changed, 940 insertions, 0 deletions
diff --git a/examples/quick/scenegraph/.prev_CMakeLists.txt b/examples/quick/scenegraph/.prev_CMakeLists.txt
new file mode 100644
index 0000000000..040945b9e8
--- /dev/null
+++ b/examples/quick/scenegraph/.prev_CMakeLists.txt
@@ -0,0 +1,25 @@
+# Generated from scenegraph.pro.
+
+add_subdirectory(customgeometry)
+add_subdirectory(rendernode)
+add_subdirectory(threadedanimation)
+if(QT_FEATURE_opengl OR QT_FEATURE_opengles2 OR QT_FEATURE_opengles3)
+ add_subdirectory(graph)
+ add_subdirectory(simplematerial)
+ add_subdirectory(sgengine)
+ add_subdirectory(fboitem)
+ add_subdirectory(openglunderqml)
+ add_subdirectory(textureinthread)
+ add_subdirectory(twotextureproviders)
+endif()
+if(APPLE_IOS OR APPLE_OSX)
+ add_subdirectory(metalunderqml)
+ add_subdirectory(metaltextureimport)
+endif()
+if(WIN32)
+ add_subdirectory(d3d11underqml)
+endif()
+if(QT_FEATURE_vulkan)
+ add_subdirectory(vulkanunderqml)
+ add_subdirectory(vulkantextureimport)
+endif()
diff --git a/examples/quick/scenegraph/CMakeLists.txt b/examples/quick/scenegraph/CMakeLists.txt
new file mode 100644
index 0000000000..6dbec6c251
--- /dev/null
+++ b/examples/quick/scenegraph/CMakeLists.txt
@@ -0,0 +1,24 @@
+# Generated from scenegraph.pro.
+
+add_subdirectory(customgeometry)
+# add_subdirectory(rendernode) # special case needs fixing
+add_subdirectory(threadedanimation)
+if(QT_FEATURE_opengl OR QT_FEATURE_opengles2 OR QT_FEATURE_opengles3)
+ add_subdirectory(graph)
+ add_subdirectory(simplematerial)
+ add_subdirectory(sgengine)
+ add_subdirectory(fboitem)
+ add_subdirectory(openglunderqml)
+ add_subdirectory(textureinthread)
+ add_subdirectory(twotextureproviders)
+endif()
+if(APPLE_OSX)
+ # add_subdirectory(metalunderqml) # special case needs fixing
+ # add_subdirectory(metaltextureimport) # special case TODO
+endif()
+if(WIN32)
+ add_subdirectory(d3d11underqml)
+endif()
+if(QT_FEATURE_vulkan)
+ #add_subdirectory(vulkanunderqml) # special case not yet converted
+endif()
diff --git a/examples/quick/scenegraph/customgeometry/CMakeLists.txt b/examples/quick/scenegraph/customgeometry/CMakeLists.txt
new file mode 100644
index 0000000000..0b1a99097b
--- /dev/null
+++ b/examples/quick/scenegraph/customgeometry/CMakeLists.txt
@@ -0,0 +1,53 @@
+# Generated from customgeometry.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(customgeometry LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quick/scenegraph/customgeometry")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(customgeometry
+ beziercurve.cpp beziercurve.h
+ main.cpp
+)
+target_link_libraries(customgeometry PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Quick
+)
+
+
+# Resources:
+set(customgeometry_resource_files
+ "main.qml"
+)
+
+qt6_add_resources(customgeometry "customgeometry"
+ PREFIX
+ "/scenegraph/customgeometry"
+ FILES
+ ${customgeometry_resource_files}
+)
+
+install(TARGETS customgeometry
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(customgeometry PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI CustomGeometry
+)
+
+qt6_qml_type_registration(customgeometry)
diff --git a/examples/quick/scenegraph/d3d11underqml/CMakeLists.txt b/examples/quick/scenegraph/d3d11underqml/CMakeLists.txt
new file mode 100644
index 0000000000..23edb3eceb
--- /dev/null
+++ b/examples/quick/scenegraph/d3d11underqml/CMakeLists.txt
@@ -0,0 +1,59 @@
+# Generated from d3d11underqml.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(d3d11underqml LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quick/scenegraph/d3d11underqml")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(d3d11underqml
+ d3d11squircle.cpp d3d11squircle.h
+ main.cpp
+)
+target_link_libraries(d3d11underqml PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+ d3d11
+ d3dcompiler
+)
+
+
+# Resources:
+set(d3d11underqml_resource_files
+ "main.qml"
+ "squircle.frag"
+ "squircle.vert"
+)
+
+qt6_add_resources(d3d11underqml "d3d11underqml"
+ PREFIX
+ "/scenegraph/d3d11underqml"
+ FILES
+ ${d3d11underqml_resource_files}
+)
+
+install(TARGETS d3d11underqml
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(d3d11underqml PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI D3D11UnderQML
+)
+
+qt6_qml_type_registration(d3d11underqml)
diff --git a/examples/quick/scenegraph/fboitem/CMakeLists.txt b/examples/quick/scenegraph/fboitem/CMakeLists.txt
new file mode 100644
index 0000000000..ba4b487415
--- /dev/null
+++ b/examples/quick/scenegraph/fboitem/CMakeLists.txt
@@ -0,0 +1,62 @@
+# Generated from fboitem.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(fboitem LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quick/scenegraph/fboitem")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(fboitem
+ ../shared/logorenderer.cpp ../shared/logorenderer.h
+ fboinsgrenderer.cpp fboinsgrenderer.h
+ main.cpp
+)
+target_include_directories(fboitem PUBLIC
+ ../shared
+)
+
+target_link_libraries(fboitem PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(fboitem_resource_files
+ "main.qml"
+ "shaders/+qsb/checker.frag"
+ "shaders/checker.frag"
+)
+
+qt6_add_resources(fboitem "fboitem"
+ PREFIX
+ "/scenegraph/fboitem"
+ FILES
+ ${fboitem_resource_files}
+)
+
+install(TARGETS fboitem
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(fboitem PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI SceneGraphRendering
+)
+
+qt6_qml_type_registration(fboitem)
diff --git a/examples/quick/scenegraph/graph/CMakeLists.txt b/examples/quick/scenegraph/graph/CMakeLists.txt
new file mode 100644
index 0000000000..f768a7fb3d
--- /dev/null
+++ b/examples/quick/scenegraph/graph/CMakeLists.txt
@@ -0,0 +1,60 @@
+# Generated from graph.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(graph LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quick/scenegraph/graph")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(graph
+ graph.cpp graph.h
+ gridnode.cpp gridnode.h
+ linenode.cpp linenode.h
+ main.cpp
+ noisynode.cpp noisynode.h
+)
+target_link_libraries(graph PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Quick
+)
+
+
+# Resources:
+set(graph_resource_files
+ "main.qml"
+ "shaders/line.fsh"
+ "shaders/line.vsh"
+ "shaders/noisy.fsh"
+ "shaders/noisy.vsh"
+)
+
+qt6_add_resources(graph "graph"
+ PREFIX
+ "/scenegraph/graph"
+ FILES
+ ${graph_resource_files}
+)
+
+install(TARGETS graph
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(graph PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI Graph
+)
+
+qt6_qml_type_registration(graph)
diff --git a/examples/quick/scenegraph/metaltextureimport/CMakeLists.txt b/examples/quick/scenegraph/metaltextureimport/CMakeLists.txt
new file mode 100644
index 0000000000..d84885f4cf
--- /dev/null
+++ b/examples/quick/scenegraph/metaltextureimport/CMakeLists.txt
@@ -0,0 +1,64 @@
+# Generated from metaltextureimport.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(metaltextureimport LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quick/scenegraph/metaltextureimport")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(metaltextureimport
+ main.cpp
+ metaltextureimport.h metaltextureimport.mm
+)
+target_link_libraries(metaltextureimport PUBLIC
+ "-framework Metal"
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(metaltextureimport_resource_files
+ "main.qml"
+ "squircle.frag"
+ "squircle.vert"
+)
+
+qt6_add_resources(metaltextureimport "metaltextureimport"
+ PREFIX
+ "/scenegraph/metaltextureimport"
+ FILES
+ ${metaltextureimport_resource_files}
+)
+
+if(APPLE_OSX)
+ target_link_libraries(metaltextureimport PUBLIC
+ "-framework AppKit"
+ )
+endif()
+
+install(TARGETS metaltextureimport
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(metaltextureimport PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI MetalTextureImport
+)
+
+qt6_qml_type_registration(metaltextureimport)
diff --git a/examples/quick/scenegraph/metalunderqml/CMakeLists.txt b/examples/quick/scenegraph/metalunderqml/CMakeLists.txt
new file mode 100644
index 0000000000..cd5136d8ea
--- /dev/null
+++ b/examples/quick/scenegraph/metalunderqml/CMakeLists.txt
@@ -0,0 +1,64 @@
+# Generated from metalunderqml.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(metalunderqml LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quick/scenegraph/metalunderqml")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(metalunderqml
+ main.cpp
+ metalsquircle.h metalsquircle.mm
+)
+target_link_libraries(metalunderqml PUBLIC
+ "-framework Metal"
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(metalunderqml_resource_files
+ "main.qml"
+ "squircle.frag"
+ "squircle.vert"
+)
+
+qt6_add_resources(metalunderqml "metalunderqml"
+ PREFIX
+ "/scenegraph/metalunderqml"
+ FILES
+ ${metalunderqml_resource_files}
+)
+
+if(APPLE_OSX)
+ target_link_libraries(metalunderqml PUBLIC
+ "-framework AppKit"
+ )
+endif()
+
+install(TARGETS metalunderqml
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(metalunderqml PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI MetalUnderQML
+)
+
+qt6_qml_type_registration(metalunderqml)
diff --git a/examples/quick/scenegraph/openglunderqml/CMakeLists.txt b/examples/quick/scenegraph/openglunderqml/CMakeLists.txt
new file mode 100644
index 0000000000..6f45e28a4a
--- /dev/null
+++ b/examples/quick/scenegraph/openglunderqml/CMakeLists.txt
@@ -0,0 +1,55 @@
+# Generated from openglunderqml.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(openglunderqml LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quick/scenegraph/openglunderqml")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(openglunderqml
+ main.cpp
+ squircle.cpp squircle.h
+)
+target_link_libraries(openglunderqml PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(openglunderqml_resource_files
+ "main.qml"
+)
+
+qt6_add_resources(openglunderqml "openglunderqml"
+ PREFIX
+ "/scenegraph/openglunderqml"
+ FILES
+ ${openglunderqml_resource_files}
+)
+
+install(TARGETS openglunderqml
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(openglunderqml PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI OpenGLUnderQML
+)
+
+qt6_qml_type_registration(openglunderqml)
diff --git a/examples/quick/scenegraph/rendernode/CMakeLists.txt b/examples/quick/scenegraph/rendernode/CMakeLists.txt
new file mode 100644
index 0000000000..f607e6e638
--- /dev/null
+++ b/examples/quick/scenegraph/rendernode/CMakeLists.txt
@@ -0,0 +1,70 @@
+# Generated from rendernode.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(rendernode LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quick/scenegraph/rendernode")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(rendernode
+ customrenderitem.cpp customrenderitem.h
+ main.cpp
+ openglrenderer.cpp openglrenderer.h
+ softwarerenderer.cpp softwarerenderer.h
+)
+target_link_libraries(rendernode PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(rendernode_resource_files
+ "main.qml"
+ "metalshader.frag"
+ "metalshader.vert"
+)
+
+qt6_add_resources(rendernode "rendernode"
+ PREFIX
+ "/scenegraph/rendernode"
+ FILES
+ ${rendernode_resource_files}
+)
+
+if(APPLE_OSX)
+ target_sources(rendernode PUBLIC
+ metalrenderer.h metalrenderer.mm
+ )
+
+ target_link_libraries(rendernode PUBLIC
+ "-framework AppKit"
+ "-framework Metal"
+ )
+endif()
+
+install(TARGETS rendernode
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(rendernode PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 2.0
+ QT_QML_MODULE_URI SceneGraphRendering
+)
+
+qt6_qml_type_registration(rendernode)
diff --git a/examples/quick/scenegraph/sgengine/CMakeLists.txt b/examples/quick/scenegraph/sgengine/CMakeLists.txt
new file mode 100644
index 0000000000..7580796800
--- /dev/null
+++ b/examples/quick/scenegraph/sgengine/CMakeLists.txt
@@ -0,0 +1,116 @@
+# Generated from sgengine.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(sgengine LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quick/scenegraph/sgengine")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(sgengine
+ main.cpp
+ window.cpp window.h
+)
+target_link_libraries(sgengine PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Quick
+)
+
+
+# Resources:
+set(sgengine_resource_files
+ "face-smile.png"
+)
+
+qt6_add_resources(sgengine "sgengine"
+ PREFIX
+ "/scenegraph/sgengine"
+ FILES
+ ${sgengine_resource_files}
+)
+set_source_files_properties("../../shared/Button.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "Button.qml"
+)
+set_source_files_properties("../../shared/CheckBox.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "CheckBox.qml"
+)
+set_source_files_properties("../../shared/FlickrRssModel.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "FlickrRssModel.qml"
+)
+set_source_files_properties("../../shared/Label.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "Label.qml"
+)
+set_source_files_properties("../../shared/LauncherList.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "LauncherList.qml"
+)
+set_source_files_properties("../../shared/SimpleLauncherDelegate.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "SimpleLauncherDelegate.qml"
+)
+set_source_files_properties("../../shared/Slider.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "Slider.qml"
+)
+set_source_files_properties("../../shared/TabSet.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "TabSet.qml"
+)
+set_source_files_properties("../../shared/TextField.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "TextField.qml"
+)
+set_source_files_properties("../../shared/images/back.png"
+ PROPERTIES QT_RESOURCE_ALIAS "images/back.png"
+)
+set_source_files_properties("../../shared/images/checkmark.png"
+ PROPERTIES QT_RESOURCE_ALIAS "images/checkmark.png"
+)
+set_source_files_properties("../../shared/images/next.png"
+ PROPERTIES QT_RESOURCE_ALIAS "images/next.png"
+)
+set_source_files_properties("../../shared/images/qt-logo.png"
+ PROPERTIES QT_RESOURCE_ALIAS "images/qt-logo.png"
+)
+set_source_files_properties("../../shared/images/slider_handle.png"
+ PROPERTIES QT_RESOURCE_ALIAS "images/slider_handle.png"
+)
+set_source_files_properties("../../shared/images/tab.png"
+ PROPERTIES QT_RESOURCE_ALIAS "images/tab.png"
+)
+set(shared_resource_files
+ "Button.qml"
+ "CheckBox.qml"
+ "FlickrRssModel.qml"
+ "Label.qml"
+ "LauncherList.qml"
+ "SimpleLauncherDelegate.qml"
+ "Slider.qml"
+ "TabSet.qml"
+ "TextField.qml"
+ "images/back.png"
+ "images/checkmark.png"
+ "images/next.png"
+ "images/qt-logo.png"
+ "images/slider_handle.png"
+ "images/tab.png"
+)
+
+qt6_add_resources(sgengine "shared"
+ PREFIX
+ "/shared"
+ BASE
+ "../../shared"
+ FILES
+ ${shared_resource_files}
+)
+
+install(TARGETS sgengine
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/quick/scenegraph/simplematerial/CMakeLists.txt b/examples/quick/scenegraph/simplematerial/CMakeLists.txt
new file mode 100644
index 0000000000..332f972d60
--- /dev/null
+++ b/examples/quick/scenegraph/simplematerial/CMakeLists.txt
@@ -0,0 +1,53 @@
+# Generated from simplematerial.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(simplematerial LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quick/scenegraph/simplematerial")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(simplematerial
+ simplematerial.cpp
+ simplematerialitem.cpp simplematerialitem.h
+)
+target_link_libraries(simplematerial PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Quick
+)
+
+
+# Resources:
+set(simplematerial_resource_files
+ "main.qml"
+)
+
+qt6_add_resources(simplematerial "simplematerial"
+ PREFIX
+ "/scenegraph/simplematerial"
+ FILES
+ ${simplematerial_resource_files}
+)
+
+install(TARGETS simplematerial
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(simplematerial PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI SimpleMaterial
+)
+
+qt6_qml_type_registration(simplematerial)
diff --git a/examples/quick/scenegraph/textureinthread/CMakeLists.txt b/examples/quick/scenegraph/textureinthread/CMakeLists.txt
new file mode 100644
index 0000000000..d29a5c63f3
--- /dev/null
+++ b/examples/quick/scenegraph/textureinthread/CMakeLists.txt
@@ -0,0 +1,61 @@
+# Generated from textureinthread.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(textureinthread LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quick/scenegraph/textureinthread")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(textureinthread
+ ../shared/logorenderer.cpp ../shared/logorenderer.h
+ main.cpp
+ threadrenderer.cpp threadrenderer.h
+)
+target_include_directories(textureinthread PUBLIC
+ ../shared
+)
+
+target_link_libraries(textureinthread PUBLIC
+ Qt::Core
+ Qt::CorePrivate
+ Qt::Gui
+ Qt::GuiPrivate
+ Qt::Quick
+)
+
+
+# Resources:
+set(textureinthread_resource_files
+ "error.qml"
+ "main.qml"
+)
+
+qt6_add_resources(textureinthread "textureinthread"
+ PREFIX
+ "/scenegraph/textureinthread"
+ FILES
+ ${textureinthread_resource_files}
+)
+
+install(TARGETS textureinthread
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(textureinthread PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI SceneGraphRendering
+)
+
+qt6_qml_type_registration(textureinthread)
diff --git a/examples/quick/scenegraph/threadedanimation/CMakeLists.txt b/examples/quick/scenegraph/threadedanimation/CMakeLists.txt
new file mode 100644
index 0000000000..4ae1ae1d70
--- /dev/null
+++ b/examples/quick/scenegraph/threadedanimation/CMakeLists.txt
@@ -0,0 +1,56 @@
+# Generated from threadedanimation.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(threadedanimation LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quick/scenegraph/threadedanimation")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(threadedanimation
+ main.cpp
+ spinner.cpp spinner.h
+)
+target_link_libraries(threadedanimation PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(threadedanimation_resource_files
+ "main.qml"
+ "spinner.png"
+)
+
+qt6_add_resources(threadedanimation "threadedanimation"
+ PREFIX
+ "/scenegraph/threadedanimation"
+ FILES
+ ${threadedanimation_resource_files}
+)
+
+install(TARGETS threadedanimation
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(threadedanimation PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI Spinner
+)
+
+qt6_qml_type_registration(threadedanimation)
diff --git a/examples/quick/scenegraph/twotextureproviders/CMakeLists.txt b/examples/quick/scenegraph/twotextureproviders/CMakeLists.txt
new file mode 100644
index 0000000000..0f6104ae40
--- /dev/null
+++ b/examples/quick/scenegraph/twotextureproviders/CMakeLists.txt
@@ -0,0 +1,61 @@
+# Generated from twotextureproviders.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(twotextureproviders LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quick/scenegraph/twotextureproviders")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(twotextureproviders
+ main.cpp
+ xorblender.cpp xorblender.h
+)
+target_link_libraries(twotextureproviders PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(twotextureproviders_resource_files
+ "main.qml"
+ "shaders/+qsb/checker.frag"
+ "shaders/+qsb/xorblender.frag"
+ "shaders/+qsb/xorblender.vert"
+ "shaders/checker.frag"
+ "shaders/xorblender.frag"
+ "shaders/xorblender.vert"
+)
+
+qt6_add_resources(twotextureproviders "twotextureproviders"
+ PREFIX
+ "/scenegraph/twotextureproviders"
+ FILES
+ ${twotextureproviders_resource_files}
+)
+
+install(TARGETS twotextureproviders
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(twotextureproviders PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI SceneGraphRendering
+)
+
+qt6_qml_type_registration(twotextureproviders)
diff --git a/examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt b/examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt
new file mode 100644
index 0000000000..450af3d5f3
--- /dev/null
+++ b/examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt
@@ -0,0 +1,57 @@
+# Generated from vulkanunderqml.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(vulkanunderqml LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+set(INSTALL_EXAMPLEDIR "examples/quick/scenegraph/vulkanunderqml")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+add_qt_gui_executable(vulkanunderqml
+ main.cpp
+ vulkansquircle.cpp vulkansquircle.h
+)
+target_link_libraries(vulkanunderqml PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(vulkanunderqml_resource_files
+ "main.qml"
+ "squircle.frag.spv"
+ "squircle.vert.spv"
+)
+
+qt6_add_resources(vulkanunderqml "vulkanunderqml"
+ PREFIX
+ "/scenegraph/vulkanunderqml"
+ FILES
+ ${vulkanunderqml_resource_files}
+)
+
+install(TARGETS vulkanunderqml
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
+
+set_target_properties(vulkanunderqml PROPERTIES
+ QT_QML_MODULE_INSTALL_QMLTYPES TRUE
+ QT_QML_MODULE_VERSION 1.0
+ QT_QML_MODULE_URI VulkanUnderQML
+)
+
+qt6_qml_type_registration(vulkanunderqml)