mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 05:58:27 +02:00
try this
This commit is contained in:
parent
ee34dfffc1
commit
1ed2c62bbf
2 changed files with 4 additions and 1 deletions
|
@ -24,6 +24,9 @@ else (APPLE)
|
||||||
find_package(GLEW REQUIRED)
|
find_package(GLEW REQUIRED)
|
||||||
include_directories(${GLEW_INCLUDE_DIRS})
|
include_directories(${GLEW_INCLUDE_DIRS})
|
||||||
|
|
||||||
|
find_package(GLUT REQUIRED)
|
||||||
|
include_directories(SYSTEM "${GLUT_INCLUDE_DIRS}")
|
||||||
|
|
||||||
# we're using static GLEW, so define GLEW_STATIC
|
# we're using static GLEW, so define GLEW_STATIC
|
||||||
add_definitions(-DGLEW_STATIC)
|
add_definitions(-DGLEW_STATIC)
|
||||||
target_link_libraries(${TARGET_NAME} "${GLEW_LIBRARIES}")
|
target_link_libraries(${TARGET_NAME} "${GLEW_LIBRARIES}")
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
#include <GLUT/glut.h>
|
#include <GLUT/glut.h>
|
||||||
#elif defined(WIN32)
|
#elif defined(WIN32)
|
||||||
// nothing?
|
#include <GL/glut.h>
|
||||||
#else
|
#else
|
||||||
#include <GL/glut.h>
|
#include <GL/glut.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue