From 697abcc532805fa1d10d56256a5f387fbad8c11b Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 14 Mar 2013 14:16:12 +0100 Subject: [PATCH] Test the cmake multimediawidgets module only if widgets is available. Change-Id: I381e1b0883fb4fdc68627848ee39a26ce22e2ba5 Reviewed-by: Alexander Neundorf Reviewed-by: Stephen Kelly --- tests/auto/cmake/CMakeLists.txt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt index 5d23068d..a634b9de 100644 --- a/tests/auto/cmake/CMakeLists.txt +++ b/tests/auto/cmake/CMakeLists.txt @@ -9,7 +9,16 @@ find_package(Qt5Core REQUIRED) include("${_Qt5CTestMacros}") -test_module_includes( - Multimedia QCamera - MultimediaWidgets QVideoWidget +set(qt_module_includes + Multimedia QCamera +) + +if (NOT NO_WIDGETS) + list(APPEND qt_module_includes + MultimediaWidgets QVideoWidget + ) +endif() + +test_module_includes( + ${qt_module_includes} )