summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2020-04-30 16:13:46 +0200
committerVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2020-05-04 23:00:45 +0200
commitde6cc8c379012cd2145fa9cc61b4cc6044fd8c07 (patch)
tree320eac318aa61764acd07b4f62694c99f99c00d6 /tests
parent9043b57823b291012d1b041a2bc3861b253c1a24 (diff)
downloadqtdoc-de6cc8c379012cd2145fa9cc61b4cc6044fd8c07.tar.gz
CMake: Port the build setup to CMake
Fixes: QTBUG-83910 Change-Id: If0ebd9d0b528cd84ffe92955b7d1c4d580d397fb Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests')
-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
6 files changed, 78 insertions, 0 deletions
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
+)