summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKevin Funk <kfunk@kde.org>2019-02-13 12:59:44 +0100
committerKevin Funk <kevin.funk@kdab.com>2019-05-03 13:50:55 +0000
commit775922d2315dddcd2750acf5d3a8a90d368dc000 (patch)
tree8013bea5d1939cc6de8830f7209dc0c3c964d7ef /tests
parentd0cba8947e5261dff56cb379d7462855d1eb7263 (diff)
downloadqtsvg-775922d2315dddcd2750acf5d3a8a90d368dc000.tar.gz
cmake: Initial CMake build system support
Task-number: QTBUG-74135 Done-With: Alexandru Croitor <alexandru.croitor@qt.io> Done-With: Liang Qi <liang.qi@qt.io> Change-Id: I81fdc3d06f53e78182352214ef4687924dfc6fb6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt1
-rw-r--r--tests/auto/CMakeLists.txt13
-rw-r--r--tests/auto/qicon_svg/CMakeLists.txt29
-rw-r--r--tests/auto/qsvgdevice/CMakeLists.txt18
-rw-r--r--tests/auto/qsvggenerator/CMakeLists.txt22
-rw-r--r--tests/auto/qsvgplugin/CMakeLists.txt39
-rw-r--r--tests/auto/qsvgrenderer/CMakeLists.txt26
7 files changed, 148 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644
index 0000000..0653827
--- /dev/null
+++ b/tests/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory(auto)
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
new file mode 100644
index 0000000..1f8140c
--- /dev/null
+++ b/tests/auto/CMakeLists.txt
@@ -0,0 +1,13 @@
+# Generated from auto.pro.
+
+
+if(TARGET Qt::Widgets)
+ add_subdirectory(qsvgdevice)
+ add_subdirectory(qsvggenerator)
+ add_subdirectory(qsvgrenderer)
+ add_subdirectory(qsvgplugin)
+ add_subdirectory(qicon_svg)
+endif()
+
+if(NOT cross_compile)
+endif()
diff --git a/tests/auto/qicon_svg/CMakeLists.txt b/tests/auto/qicon_svg/CMakeLists.txt
new file mode 100644
index 0000000..d314181
--- /dev/null
+++ b/tests/auto/qicon_svg/CMakeLists.txt
@@ -0,0 +1,29 @@
+# Generated from qicon_svg.pro.
+
+#####################################################################
+## tst_qicon_svg Test:
+#####################################################################
+
+add_qt_test(tst_qicon_svg
+ SOURCES
+ tst_qicon_svg.cpp
+ LIBRARIES
+ Qt::GuiPrivate
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Svg
+)
+
+# Resources:
+add_qt_resource(tst_qicon_svg "tst_qicon_svg" PREFIX "/" FILES
+ ./icons/heart.svg
+ ./icons/heart.svgz
+ ./icons/image.png
+ ./icons/rect.svg
+ ./icons/rect_size_100percent.svg
+ ./icons/trash.svg)
+
+
+#### Keys ignored in scope 1:.:.:qicon_svg.pro:<TRUE>:
+# CONFIG = "testcase"
+# TESTDATA = "icons/*"
diff --git a/tests/auto/qsvgdevice/CMakeLists.txt b/tests/auto/qsvgdevice/CMakeLists.txt
new file mode 100644
index 0000000..87d8fc2
--- /dev/null
+++ b/tests/auto/qsvgdevice/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from qsvgdevice.pro.
+
+#####################################################################
+## tst_qsvgdevice Test:
+#####################################################################
+
+add_qt_test(tst_qsvgdevice
+ SOURCES
+ tst_qsvgdevice.cpp
+ LIBRARIES
+ Qt::GuiPrivate
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:.:qsvgdevice.pro:<TRUE>:
+# CONFIG = "testcase"
diff --git a/tests/auto/qsvggenerator/CMakeLists.txt b/tests/auto/qsvggenerator/CMakeLists.txt
new file mode 100644
index 0000000..439d1e9
--- /dev/null
+++ b/tests/auto/qsvggenerator/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from qsvggenerator.pro.
+
+#####################################################################
+## tst_qsvggenerator Test:
+#####################################################################
+
+add_qt_test(tst_qsvggenerator
+ SOURCES
+ tst_qsvggenerator.cpp
+ DEFINES
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/./\\\"
+ LIBRARIES
+ Qt::GuiPrivate
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Svg
+ Qt::Widgets
+ Qt::Xml
+)
+
+#### Keys ignored in scope 1:.:.:qsvggenerator.pro:<TRUE>:
+# CONFIG = "testcase"
diff --git a/tests/auto/qsvgplugin/CMakeLists.txt b/tests/auto/qsvgplugin/CMakeLists.txt
new file mode 100644
index 0000000..e92d807
--- /dev/null
+++ b/tests/auto/qsvgplugin/CMakeLists.txt
@@ -0,0 +1,39 @@
+# Generated from qsvgplugin.pro.
+
+#####################################################################
+## tst_qsvgplugin Test:
+#####################################################################
+
+add_qt_test(tst_qsvgplugin
+ SOURCES
+ tst_qsvgplugin.cpp
+ DEFINES
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/./\\\"
+ LIBRARIES
+ Qt::GuiPrivate
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Svg
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(tst_qsvgplugin "resources" FILES
+ imageInclude.svg
+ imageIncludeA.svg
+ square.svg
+ square_size.svg
+ square_size_viewbox.svg
+ square_viewbox.svg
+ tall.svg
+ tall_size.svg
+ tall_size_viewbox.svg
+ tall_viewbox.svg
+ wide.svg
+ wide_size.svg
+ wide_size_viewbox.svg
+ wide_viewbox.svg)
+
+
+#### Keys ignored in scope 1:.:.:qsvgplugin.pro:<TRUE>:
+# CONFIG = "testcase"
diff --git a/tests/auto/qsvgrenderer/CMakeLists.txt b/tests/auto/qsvgrenderer/CMakeLists.txt
new file mode 100644
index 0000000..38932a0
--- /dev/null
+++ b/tests/auto/qsvgrenderer/CMakeLists.txt
@@ -0,0 +1,26 @@
+# Generated from qsvgrenderer.pro.
+
+#####################################################################
+## tst_qsvgrenderer Test:
+#####################################################################
+
+add_qt_test(tst_qsvgrenderer
+ SOURCES
+ tst_qsvgrenderer.cpp
+ DEFINES
+ SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/./\\\"
+ LIBRARIES
+ Qt::GuiPrivate
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Svg
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(tst_qsvgrenderer "resources" FILES
+ heart.svgz)
+
+
+#### Keys ignored in scope 1:.:.:qsvgrenderer.pro:<TRUE>:
+# CONFIG = "testcase"