aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/shapes
diff options
context:
space:
mode:
authorLeander Beernaert <leander.beernaert@qt.io>2019-08-22 11:45:45 +0200
committerLeander Beernaert <leander.beernaert@qt.io>2019-08-23 13:51:06 +0000
commitb938edcfb3aa2c78e35c9d63d995f6824e14eadf (patch)
tree593a1eb2158d47b67d422259721198956d9f9a7f /examples/quick/shapes
parent2be575b4b1e6f6e11a8dbd0b1c05c003828d2598 (diff)
Convert Examples
This patch converts all examples in qtdeclarative except for a few exceptions which require a public facing qml plugin api. Change-Id: I2cd2b1bb455be8b48796893a8235dea7f8b35aa2 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/quick/shapes')
-rw-r--r--examples/quick/shapes/CMakeLists.txt157
1 files changed, 157 insertions, 0 deletions
diff --git a/examples/quick/shapes/CMakeLists.txt b/examples/quick/shapes/CMakeLists.txt
new file mode 100644
index 0000000000..c33317c9cd
--- /dev/null
+++ b/examples/quick/shapes/CMakeLists.txt
@@ -0,0 +1,157 @@
+# Generated from shapes.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(shapes 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 Quick)
+find_package(Qt6 COMPONENTS Qml)
+
+add_qt_gui_executable(shapes
+ main.cpp
+)
+target_link_libraries(shapes PUBLIC
+ Qt::Core
+ Qt::Gui
+ Qt::Qml
+ Qt::Quick
+)
+
+# Resources:
+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/images/back.png"
+ PROPERTIES QT_RESOURCE_ALIAS "images/back.png"
+)
+set_source_files_properties("../shared/images/next.png"
+ PROPERTIES QT_RESOURCE_ALIAS "images/next.png"
+)
+set_source_files_properties("../shared/images/slider_handle.png"
+ PROPERTIES QT_RESOURCE_ALIAS "images/slider_handle.png"
+)
+set_source_files_properties("content/clippedtigers.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "clippedtigers.qml"
+)
+set_source_files_properties("content/interactive.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "interactive.qml"
+)
+set_source_files_properties("content/item10.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "item10.qml"
+)
+set_source_files_properties("content/item11.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "item11.qml"
+)
+set_source_files_properties("content/item12.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "item12.qml"
+)
+set_source_files_properties("content/item13.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "item13.qml"
+)
+set_source_files_properties("content/item14.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "item14.qml"
+)
+set_source_files_properties("content/item15.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "item15.qml"
+)
+set_source_files_properties("content/item17.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "item17.qml"
+)
+set_source_files_properties("content/item2.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "item2.qml"
+)
+set_source_files_properties("content/item3.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "item3.qml"
+)
+set_source_files_properties("content/item4.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "item4.qml"
+)
+set_source_files_properties("content/item5.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "item5.qml"
+)
+set_source_files_properties("content/item6.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "item6.qml"
+)
+set_source_files_properties("content/item7.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "item7.qml"
+)
+set_source_files_properties("content/item8.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "item8.qml"
+)
+set_source_files_properties("content/item9.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "item9.qml"
+)
+set_source_files_properties("content/main.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "main.qml"
+)
+set_source_files_properties("content/sampling.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "sampling.qml"
+)
+set_source_files_properties("content/shapegallery.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "shapegallery.qml"
+)
+set_source_files_properties("content/tapableTriangle.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "tapableTriangle.qml"
+)
+set_source_files_properties("content/tiger.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "tiger.qml"
+)
+set(shapes_resource_files
+ "../shared/LauncherList.qml"
+ "../shared/SimpleLauncherDelegate.qml"
+ "../shared/Slider.qml"
+ "../shared/images/back.png"
+ "../shared/images/next.png"
+ "../shared/images/slider_handle.png"
+ "content/clippedtigers.qml"
+ "content/interactive.qml"
+ "content/item10.qml"
+ "content/item11.qml"
+ "content/item12.qml"
+ "content/item13.qml"
+ "content/item14.qml"
+ "content/item15.qml"
+ "content/item17.qml"
+ "content/item2.qml"
+ "content/item3.qml"
+ "content/item4.qml"
+ "content/item5.qml"
+ "content/item6.qml"
+ "content/item7.qml"
+ "content/item8.qml"
+ "content/item9.qml"
+ "content/main.qml"
+ "content/sampling.qml"
+ "content/shapegallery.qml"
+ "content/tapableTriangle.qml"
+ "content/tiger.qml"
+)
+
+QT6_ADD_RESOURCES(shapes "shapes"
+ PREFIX
+ "/shapes"
+ FILES
+ ${shapes_resource_files}
+)
+
+
+install(TARGETS shapes
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)