One or two things towards gettings it working on Linux.

At least now it _attempts_ to build the example :)
This commit is contained in:
Matt Williams 2009-03-29 00:32:28 +00:00
parent 58355da40b
commit 25898425f5
3 changed files with 5 additions and 3 deletions

View File

@ -40,7 +40,7 @@ SET(QT_USE_QTGUI 1)
SET(QT_USE_QTOPENGL 1)
INCLUDE(${QT_USE_FILE})
IF (WIN32)
#IF (WIN32)
FIND_PACKAGE(OpenGL REQUIRED)
#NOTE: In Windows I haven't had much luck getting the FindGLUT script to work correctly.
@ -65,4 +65,4 @@ IF (WIN32)
)
ADD_DEPENDENCIES(OpenGLExample PolyVoxCore) #This shouldn't be needed
ENDIF (WIN32)
#ENDIF (WIN32)

View File

@ -4,7 +4,7 @@
#ifdef WIN32
#include "glew/glew.h"
#else
#include <gl/gl.h> // The GL Header File
#include <GL/gl.h> // The GL Header File
#endif
#include <QGLWidget>

View File

@ -9,7 +9,9 @@
#include "OpenGLWidget.h"
#ifdef WIN32
#include <windows.h> // Standard Header For Most Programs
#endif
#include <QApplication>