summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-05-22 11:06:01 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-05-22 14:05:22 +0000
commit893c644dcfa520a2912c9f71c76c281c6006f597 (patch)
treec289be55957af6c9f9aaa04fa589f02d8ebd942d /tests
parent02b9da194f60b87ae291aa13401be6759533ddcf (diff)
downloadqtsvg-893c644dcfa520a2912c9f71c76c281c6006f597.tar.gz
Support standalone tests building
Change-Id: I851619f838ad30967e1ad7634dc0e5c86491c1a0 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 0653827..fd61af0 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1 +1,11 @@
-add_subdirectory(auto)
+# special case begin
+if(NOT TARGET Qt::Test)
+ cmake_minimum_required(VERSION 3.14.0)
+ project(QtSvgTests C CXX ASM)
+ find_package(Qt5 REQUIRED COMPONENTS BuildInternals Core Test)
+ find_package(Qt5 COMPONENTS Svg Widgets Xml)
+ qt_set_up_standalone_tests_build()
+endif()
+# special case end
+
+qt_build_tests()