summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2013-02-26 13:57:50 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-26 22:44:45 +0100
commit204dc6d2f6c2e0737dd0905577bc16a0f8ddf339 (patch)
treef08f87df838d1173c593343f3d61cbbb00380f1d
parent84abe5fcf2a70de7bf8503641e8617383693882e (diff)
downloadqtsvg-204dc6d2f6c2e0737dd0905577bc16a0f8ddf339.tar.gz
Use qmake for package dependency resolution in cmake tests.
This allows us to remove hardcoded depends information. Change-Id: I362c58cd27341932a7e8ad5e0bb96375249a3ea9 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 37e4100..c66b753 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 Widgets)
-
test_module_includes(
Svg QSvgWidget
)
diff --git a/tests/auto/cmake/cmake.pro b/tests/auto/cmake/cmake.pro
index bf2dbcb..4463bd0 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 = svg
+
CONFIG += ctest_testcase