--- ./qtopengl/CMakeLists.txt.orig	2012-01-24 23:59:14.093331999 +0100
+++ ./qtopengl/CMakeLists.txt	2012-01-25 00:00:21.496073316 +0100
@@ -1,4 +1,6 @@
-include_directories( ${QT_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} )
+find_package(OpenGL)
+
+include_directories( ${QT_INCLUDES} ${OPENGL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} )
 
 configure_file(config.xml.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.xml @ONLY)
 
