summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2013-03-14 14:16:12 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-14 19:33:59 +0100
commit697abcc532805fa1d10d56256a5f387fbad8c11b (patch)
tree7561511c15a71d620c604d3f0ae55add47ec8936
parent403e829f9dd4ad981c589b1f1e943a5bfbb9b1f9 (diff)
Test the cmake multimediawidgets module only if widgets is available.
Change-Id: I381e1b0883fb4fdc68627848ee39a26ce22e2ba5 Reviewed-by: Alexander Neundorf <neundorf@kde.org> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
-rw-r--r--tests/auto/cmake/CMakeLists.txt13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt
index 5d23068d8..a634b9dec 100644
--- a/tests/auto/cmake/CMakeLists.txt
+++ b/tests/auto/cmake/CMakeLists.txt
@@ -9,7 +9,16 @@ find_package(Qt5Core REQUIRED)
include("${_Qt5CTestMacros}")
+set(qt_module_includes
+ Multimedia QCamera
+)
+
+if (NOT NO_WIDGETS)
+ list(APPEND qt_module_includes
+ MultimediaWidgets QVideoWidget
+ )
+endif()
+
test_module_includes(
- Multimedia QCamera
- MultimediaWidgets QVideoWidget
+ ${qt_module_includes}
)