diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2009-03-23 09:34:13 (GMT) |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2009-03-23 09:34:13 (GMT) |
commit | 67ad0519fd165acee4a4d2a94fa502e9e4847bd0 (patch) | |
tree | 1dbf50b3dff8d5ca7e9344733968c72704eb15ff /config.tests/x11/opengl | |
download | Qt-67ad0519fd165acee4a4d2a94fa502e9e4847bd0.zip Qt-67ad0519fd165acee4a4d2a94fa502e9e4847bd0.tar.gz Qt-67ad0519fd165acee4a4d2a94fa502e9e4847bd0.tar.bz2 |
Long live Qt!
Diffstat (limited to 'config.tests/x11/opengl')
-rw-r--r-- | config.tests/x11/opengl/opengl.cpp | 13 | ||||
-rw-r--r-- | config.tests/x11/opengl/opengl.pro | 10 |
2 files changed, 23 insertions, 0 deletions
diff --git a/config.tests/x11/opengl/opengl.cpp b/config.tests/x11/opengl/opengl.cpp new file mode 100644 index 0000000..ad69379 --- /dev/null +++ b/config.tests/x11/opengl/opengl.cpp @@ -0,0 +1,13 @@ +#include <GL/gl.h> +#include <GL/glu.h> + +#ifndef GLU_VERSION_1_2 +# error "Required GLU version 1.2 not found." +#endif + +int main(int, char **) +{ + GLuint x; + x = 0; + return 0; +} diff --git a/config.tests/x11/opengl/opengl.pro b/config.tests/x11/opengl/opengl.pro new file mode 100644 index 0000000..432bd8d --- /dev/null +++ b/config.tests/x11/opengl/opengl.pro @@ -0,0 +1,10 @@ +SOURCES = opengl.cpp +CONFIG += x11 +INCLUDEPATH += $$QMAKE_INCDIR_OPENGL + +for(p, QMAKE_LIBDIR_OPENGL) { + exists($$p):LIBS += -L$$p +} + +CONFIG -= qt +LIBS += -lGL -lGLU |