aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-05-24 15:35:20 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-06-03 11:03:46 +0000
commit6c69a6ab7c61d03150ed2e58725c3a61a443fdc0 (patch)
treed6afabf14cc77b22b01b0a4f3e484ac83be31271 /examples
parent677d336def1686d0d6d8f6d55bf8e2686ed27e07 (diff)
Initial CMake port
Crude port of QtQml, QtQmlModels, QtQuick and a few tests and a few examples. Task-number: QTBUG-74136 Change-Id: I5de4d8215b33d1a4a72c2c0e7951e4b384f27e3e Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt11
-rw-r--r--examples/qml/CMakeLists.txt14
-rw-r--r--examples/qml/referenceexamples/CMakeLists.txt19
-rw-r--r--examples/qml/referenceexamples/adding/CMakeLists.txt21
-rw-r--r--examples/qml/shell/CMakeLists.txt24
5 files changed, 89 insertions, 0 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
new file mode 100644
index 0000000000..74e685448e
--- /dev/null
+++ b/examples/CMakeLists.txt
@@ -0,0 +1,11 @@
+# Generated from examples.pro.
+
+add_subdirectory(qml)
+
+if(TARGET Qt::QuickTest)
+ add_subdirectory(qmltest)
+endif()
+
+#if(TARGET Qt::Quick)
+#add_subdirectory(quick)
+#endif()
diff --git a/examples/qml/CMakeLists.txt b/examples/qml/CMakeLists.txt
new file mode 100644
index 0000000000..496d36ba21
--- /dev/null
+++ b/examples/qml/CMakeLists.txt
@@ -0,0 +1,14 @@
+# Generated from qml.pro.
+
+add_subdirectory(referenceexamples)
+#add_subdirectory(tutorials)
+add_subdirectory(shell)
+
+#if(TARGET Qt::Quick)
+ #add_subdirectory(qmlextensionplugins)
+ #add_subdirectory(xmlhttprequest)
+
+ #if(QT_FEATURE_qml_network)
+ #add_subdirectory(networkaccessmanagerfactory)
+ #endif()
+#endif()
diff --git a/examples/qml/referenceexamples/CMakeLists.txt b/examples/qml/referenceexamples/CMakeLists.txt
new file mode 100644
index 0000000000..f7ba5c0565
--- /dev/null
+++ b/examples/qml/referenceexamples/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from referenceexamples.pro.
+
+add_subdirectory(adding)
+#add_subdirectory(coercion)
+#add_subdirectory(default)
+#add_subdirectory(properties)
+#add_subdirectory(methods)
+
+#if(TARGET Qt::Widgets)
+ #add_subdirectory(extended)
+#endif()
+
+#if(TARGET Qt::Quick)
+ #add_subdirectory(attached)
+ #add_subdirectory(binding)
+ #add_subdirectory(grouped)
+ #add_subdirectory(signal)
+ #add_subdirectory(valuesource)
+#endif()
diff --git a/examples/qml/referenceexamples/adding/CMakeLists.txt b/examples/qml/referenceexamples/adding/CMakeLists.txt
new file mode 100644
index 0000000000..5f2b272d3f
--- /dev/null
+++ b/examples/qml/referenceexamples/adding/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from adding.pro.
+
+#####################################################################
+## adding Binary:
+#####################################################################
+
+add_qt_executable(adding
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qml/referenceexamples/adding"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qml/referenceexamples/adding"
+ SOURCES
+ main.cpp
+ person.cpp person.h
+ PUBLIC_LIBRARIES
+ Qt::Qml
+)
+
+# Resources:
+add_qt_resource(adding "adding" FILES
+ example.qml)
+
diff --git a/examples/qml/shell/CMakeLists.txt b/examples/qml/shell/CMakeLists.txt
new file mode 100644
index 0000000000..2b3bdd4786
--- /dev/null
+++ b/examples/qml/shell/CMakeLists.txt
@@ -0,0 +1,24 @@
+# Generated from shell.pro.
+
+#####################################################################
+## shell Binary:
+#####################################################################
+
+add_qt_executable(shell
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qml/shell"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qml/shell"
+ SOURCES
+ main.cpp
+ PUBLIC_LIBRARIES
+ Qt::Qml
+)
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:.:shell.pro:WIN32:
+# CONFIG = "console"
+
+#### Keys ignored in scope 3:.:.:shell.pro:APPLE_OSX:
+# CONFIG = "-app_bundle"