summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2013-02-26 14:02:06 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-26 21:23:03 +0100
commitde349a576481ed05756e90d7022ddf0d1aaf49b7 (patch)
tree8a97c0ee8a57e83939c5e229c76de69c333b7078
parentc79d19ae9d4feb353236db49381d8c6b9b032a4b (diff)
downloadqtxmlpatterns-de349a576481ed05756e90d7022ddf0d1aaf49b7.tar.gz
Use qmake for package dependency resolution in cmake tests.
This allows us to remove hardcoded depends information. Change-Id: I5aac8d8e4fe53ad335ab4317c2bca82e9b6e4ede Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
-rw-r--r--tests/auto/cmake/CMakeLists.txt2
-rw-r--r--tests/auto/cmake/cmake.pro2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt
index fda4e5e..b869eaa 100644
--- a/tests/auto/cmake/CMakeLists.txt
+++ b/tests/auto/cmake/CMakeLists.txt
@@ -9,8 +9,6 @@ find_package(Qt5Core REQUIRED)
include("${_Qt5CTestMacros}")
-set(Qt5_MODULE_TEST_DEPENDS Network)
-
test_module_includes(
XmlPatterns QXmlQuery
)
diff --git a/tests/auto/cmake/cmake.pro b/tests/auto/cmake/cmake.pro
index bf2dbcb..d69a54f 100644
--- a/tests/auto/cmake/cmake.pro
+++ b/tests/auto/cmake/cmake.pro
@@ -2,4 +2,6 @@
# Cause make to do nothing.
TEMPLATE = subdirs
+CMAKE_QT_MODULES_UNDER_TEST = xmlpatterns
+
CONFIG += ctest_testcase