
cmake_minimum_required(VERSION 2.8)

project(qmake_cmake_files)

enable_testing()

find_package(Qt5Core REQUIRED)

include("${_Qt5CTestMacros}")

test_module_includes(
  Multimedia QCamera
  MultimediaWidgets QVideoWidget
)


cmake_minimum_required(VERSION 2.8)

project(qmake_cmake_files)

enable_testing()

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(
    ${qt_module_includes}
)

Test the cmake multimediawidgets module only if widgets is available.
Test the cmake multimediawidgets module only if widgets is available.

Change-Id: I381e1b0883fb4fdc68627848ee39a26ce22e2ba5
Reviewed-by: Alexander Neundorf <dec389f80934814320048446552eb4d3cd9248a0@kde.org>
Reviewed-by: Stephen Kelly <b039a7232b458ac8785f8e91519ad165c3ac28cd@kdab.com>
