summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-07-03 15:30:42 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-07-03 14:23:03 +0000
commitbacfc218112b2aab7ab2119028b23ecaca391995 (patch)
treecd7c84817e36131266c52b0937d85c5f676853e7 /tests
parentb674c81225bd5f83b247b085f98879a4b7d24252 (diff)
downloadqtsvg-bacfc218112b2aab7ab2119028b23ecaca391995.tar.gz
Search for Xml package and check for the Xml target for a test
This fixes the CMake configuration to succeed if the Xml package is not built. Change-Id: I062ef1dc70c3eef286eaadb62a5fe6b7c827f3db Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
index 1f8140c..7fa439e 100644
--- a/tests/auto/CMakeLists.txt
+++ b/tests/auto/CMakeLists.txt
@@ -3,7 +3,9 @@
if(TARGET Qt::Widgets)
add_subdirectory(qsvgdevice)
- add_subdirectory(qsvggenerator)
+ if(TARGET Qt::Xml) # special case
+ add_subdirectory(qsvggenerator) # special case
+ endif() # special case
add_subdirectory(qsvgrenderer)
add_subdirectory(qsvgplugin)
add_subdirectory(qicon_svg)