summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt11
-rw-r--r--tests/auto/.prev_CMakeLists.txt13
-rw-r--r--tests/auto/CMakeLists.txt15
-rw-r--r--tests/auto/qicon_svg/CMakeLists.txt29
-rw-r--r--tests/auto/qsvgdevice/CMakeLists.txt18
-rw-r--r--tests/auto/qsvggenerator/CMakeLists.txt32
-rw-r--r--tests/auto/qsvgplugin/CMakeLists.txt43
-rw-r--r--tests/auto/qsvgrenderer/CMakeLists.txt31
8 files changed, 192 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644
index 0000000..68c2db0
--- /dev/null
+++ b/tests/CMakeLists.txt
@@ -0,0 +1,11 @@
+# special case begin
+if(NOT TARGET Qt::Test)
+ cmake_minimum_required(VERSION 3.14.0)
+ project(QtSvgTests C CXX ASM)
+ find_package(Qt6 REQUIRED COMPONENTS BuildInternals Core Test)
+ find_package(Qt6 COMPONENTS Svg Widgets Xml)
+ qt_set_up_standalone_tests_build()
+endif()
+# special case end
+
+qt_build_tests()
diff --git a/tests/auto/.prev_CMakeLists.txt b/tests/auto/.prev_CMakeLists.txt
new file mode 100644
index 0000000..d33db21
--- /dev/null
+++ b/tests/auto/.prev_CMakeLists.txt
@@ -0,0 +1,13 @@
+# Generated from auto.pro.
+
+if(TARGET Qt::Widgets)
+ add_subdirectory(qsvgdevice)
+ add_subdirectory(qsvggenerator)
+ add_subdirectory(qsvgplugin)
+ add_subdirectory(qicon_svg)
+ add_subdirectory(cmake)
+ add_subdirectory(installed_cmake)
+endif()
+if(TARGET Qt::Widgets AND NOT ANDROID)
+ add_subdirectory(qsvgrenderer)
+endif()
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
new file mode 100644
index 0000000..31b62c6
--- /dev/null
+++ b/tests/auto/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from auto.pro.
+
+if(TARGET Qt::Widgets)
+ add_subdirectory(qsvgdevice)
+ if(TARGET Qt::Xml) # special case
+ add_subdirectory(qsvggenerator) # special case
+ endif() # special case
+ add_subdirectory(qsvgplugin)
+ add_subdirectory(qicon_svg)
+ # add_subdirectory(cmake) # special case remove
+ # add_subdirectory(installed_cmake) # special case remove
+endif()
+if(TARGET Qt::Widgets AND NOT ANDROID)
+ add_subdirectory(qsvgrenderer)
+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..039f7db
--- /dev/null
+++ b/tests/auto/qsvggenerator/CMakeLists.txt
@@ -0,0 +1,32 @@
+# Generated from qsvggenerator.pro.
+
+#####################################################################
+## tst_qsvggenerator Test:
+#####################################################################
+
+add_qt_test(tst_qsvggenerator
+ GUI
+ SOURCES
+ tst_qsvggenerator.cpp
+ LIBRARIES
+ Qt::GuiPrivate
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Svg
+ Qt::Widgets
+ Qt::Xml
+)
+
+# Resources:
+set(qmake_immediate_resource_files
+ "referenceSvgs/fileName_output.svg"
+ "referenceSvgs/radial_gradient.svg"
+)
+
+add_qt_resource(tst_qsvggenerator "qmake_immediate"
+ PREFIX
+ "/"
+ FILES
+ ${qmake_immediate_resource_files}
+)
+
diff --git a/tests/auto/qsvgplugin/CMakeLists.txt b/tests/auto/qsvgplugin/CMakeLists.txt
new file mode 100644
index 0000000..19ee765
--- /dev/null
+++ b/tests/auto/qsvgplugin/CMakeLists.txt
@@ -0,0 +1,43 @@
+# Generated from qsvgplugin.pro.
+
+#####################################################################
+## tst_qsvgplugin Test:
+#####################################################################
+
+add_qt_test(tst_qsvgplugin
+ GUI
+ SOURCES
+ tst_qsvgplugin.cpp
+ LIBRARIES
+ Qt::GuiPrivate
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Svg
+ Qt::Widgets
+)
+
+# Resources:
+set(resources_resource_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"
+)
+
+add_qt_resource(tst_qsvgplugin "resources"
+ PREFIX
+ "/"
+ FILES
+ ${resources_resource_files}
+)
+
diff --git a/tests/auto/qsvgrenderer/CMakeLists.txt b/tests/auto/qsvgrenderer/CMakeLists.txt
new file mode 100644
index 0000000..5ff0f43
--- /dev/null
+++ b/tests/auto/qsvgrenderer/CMakeLists.txt
@@ -0,0 +1,31 @@
+# Generated from qsvgrenderer.pro.
+
+#####################################################################
+## tst_qsvgrenderer Test:
+#####################################################################
+
+add_qt_test(tst_qsvgrenderer
+ GUI
+ 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"
+ PREFIX
+ "/"
+ FILES
+ heart.svgz
+)
+
+
+#### Keys ignored in scope 1:.:.:qsvgrenderer.pro:<TRUE>:
+# CONFIG = "testcase"