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>
This commit is contained in:
committed by
The Qt Project
parent
403e829f9d
commit
697abcc532
@@ -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}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user