all repos — mgba @ 093036db76697f59bdb66ea3952d3331d40e1d9e

mGBA Game Boy Advance Emulator

Detect Qt modules without hard-failing
Jeffrey Pfau jeffrey@endrift.com
Sat, 18 Oct 2014 01:10:47 -0700
commit

093036db76697f59bdb66ea3952d3331d40e1d9e

parent

fb5f01e46ac3c64fbddeea913ce238c27f092ec3

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/CMakeLists.txtsrc/platform/qt/CMakeLists.txt

@@ -14,10 +14,12 @@

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()