From: Simon A. Eugster Date: Sun, 20 Feb 2011 09:30:23 +0000 (+0000) Subject: CMakeLists.txt: Check for availability of QtOpenGL (REQUIRED). X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=676c073327afab1114e87904b3a4f4d621d93b78;p=kdenlive CMakeLists.txt: Check for availability of QtOpenGL (REQUIRED). svn path=/trunk/kdenlive/; revision=5436 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b940f9f7..2056ce21 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,13 @@ include(MacroLibrary) include(FindGettext) include(MacroOptionalAddSubdirectory) set(catalogname kdenlive) +find_package(Qt COMPONENTS QtOpenGL) +if ( NOT QT_QTOPENGL_FOUND ) + message(FATAL_ERROR "QtOpenGL (most likely called libqt4-opengl-dev) not found.") +else ( NOT QT_QTOPENGL_FOUND ) + message(-- " Found QtOpenGL.") +endif ( NOT QT_QTOPENGL_FOUND ) +find_library(Qt COMPONENTS QtOpenGL REQUIRED) add_definitions(${QT_DEFINITIONS}) # Search MLT package.