mirror of https://github.com/mgba-emu/mgba.git
Detect Qt modules without hard-failing
This commit is contained in:
parent
fb5f01e46a
commit
093036db76
|
@ -14,10 +14,12 @@ endif()
|
||||||
set(CMAKE_AUTOMOC ON)
|
set(CMAKE_AUTOMOC ON)
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
|
||||||
|
find_package(Qt5Multimedia)
|
||||||
|
find_package(Qt5OpenGL)
|
||||||
find_package(Qt5Widgets)
|
find_package(Qt5Widgets)
|
||||||
find_package(OpenGL)
|
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)
|
set(BUILD_QT OFF PARENT_SCOPE)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue