]> git.sesse.net Git - vlc/commitdiff
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 c3f83b48bdbb2b765747c03c78b5d96dc596ed9c..ae7b8b294c768ccf0ec0d4295b8369845ed1104c 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)
 
 ###########################################################