diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2013-02-26 13:56:22 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-26 21:22:30 +0100 |
commit | d2cafb8506b798bad7fa56f19557dd6e1cb25cd7 (patch) | |
tree | 22bbefa6f28c7ab1865c9bdbedd69c551af5eeb9 /tests | |
parent | 97cf3d27e6e9771690b1ea29e09f06d4376ffcab (diff) |
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.txt | 2 | ||||
-rw-r--r-- | tests/auto/cmake/cmake.pro | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt index 2c8e39e7..4eba8604 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 bf2dbcb7..f8c4e0a9 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 |