From 093036db76697f59bdb66ea3952d3331d40e1d9e Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 18 Oct 2014 01:10:47 -0700 Subject: [PATCH] Detect Qt modules without hard-failing --- src/platform/qt/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platform/qt/CMakeLists.txt b/src/platform/qt/CMakeLists.txt index 22a25d5d3..77fb0fdef 100644 --- a/src/platform/qt/CMakeLists.txt +++ b/src/platform/qt/CMakeLists.txt @@ -14,10 +14,12 @@ endif() set(CMAKE_AUTOMOC ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) +find_package(Qt5Multimedia) +find_package(Qt5OpenGL) find_package(Qt5Widgets) find_package(OpenGL) -if(NOT Qt5Widgets_FOUND OR NOT OPENGL_FOUND) +if(NOT Qt5Multimedia_FOUND OR NOT Qt5OpenGL_FOUND OR NOT Qt5Widgets_FOUND OR NOT OPENGL_FOUND) set(BUILD_QT OFF PARENT_SCOPE) return() endif()