cmake: Find opengl.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 8 Feb 2008 14:28:26 +0000 (14:28 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 8 Feb 2008 14:28:26 +0000 (14:28 +0000)
extras/buildsystem/cmake/include/config.cmake

index c3f83b4..ae7b8b2 100644 (file)
@@ -400,6 +400,13 @@ if(Qt4_FOUND)
   vlc_module_add_link_libraries(qt4 ${Qt4_LIBRARIES} Qt4)
 endif(Qt4_FOUND)
 
+find_package(OpenGL)
+if(OPENGL_FOUND)
+  vlc_enable_modules(opengl)
+  vlc_add_module_compile_flag(opengl ${OPENGL_CFLAGS})
+  vlc_module_add_link_libraries(opengl ${OPENGL_LIBRARIES})
+endif(OPENGL_FOUND)
+
 set(CMAKE_REQUIRED_INCLUDES)
 
 ###########################################################