summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2013-02-26 13:56:22 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-26 21:22:30 +0100
commitd2cafb8506b798bad7fa56f19557dd6e1cb25cd7 (patch)
tree22bbefa6f28c7ab1865c9bdbedd69c551af5eeb9 /tests
parent97cf3d27e6e9771690b1ea29e09f06d4376ffcab (diff)
downloadqtsensors-d2cafb8506b798bad7fa56f19557dd6e1cb25cd7.tar.gz
Use qmake for package dependency resolution in cmake tests.
This allows us to remove hardcoded depends information. Change-Id: Id094414d27c1da9b957730b0101d920d561d396d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'tests')
-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 2c8e39e..4eba860 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 Core)
-
test_module_includes(
Sensors QLightSensor
)
diff --git a/tests/auto/cmake/cmake.pro b/tests/auto/cmake/cmake.pro
index bf2dbcb..f8c4e0a 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 = sensors
+
CONFIG += ctest_testcase