Detect Qt modules without hard-failing

This commit is contained in:
Jeffrey Pfau 2014-10-18 01:10:47 -07:00
parent fb5f01e46a
commit 093036db76
1 changed files with 3 additions and 1 deletions

View File

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