summaryrefslogtreecommitdiff
path: root/tests/auto/cmake
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-09-20 10:49:25 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-20 14:34:27 +0200
commit13204ec3cc2f540df8f800a563fb60a60f38131b (patch)
tree177c8e7e72bbffb0ba0a9c7a6222089bdbfb3e08 /tests/auto/cmake
parent84c4d222525b0804ed8163b8f0aa75088c3a78ea (diff)
downloadqttools-13204ec3cc2f540df8f800a563fb60a60f38131b.tar.gz
Don't test QtTools modules if widgets is not available.
All public QtTools modules depend on widgets. Change-Id: Iac3b67337da8f6d9024e8e179646ba42ce74e23e Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'tests/auto/cmake')
-rw-r--r--tests/auto/cmake/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt
index bbd80e15c..c60829c33 100644
--- a/tests/auto/cmake/CMakeLists.txt
+++ b/tests/auto/cmake/CMakeLists.txt
@@ -30,4 +30,8 @@ find_package(Qt5Core REQUIRED)
include("${_Qt5CTestMacros}")
expect_pass(test_translation_macros)
-expect_pass(test_modules)
+
+find_package(Qt5Widgets)
+if (Qt5Widgets_FOUND)
+ expect_pass(test_modules)
+endif()