mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 17:03:11 +02:00
changes to CMakeLists to remove double links on OS X
This commit is contained in:
parent
761daf684f
commit
757aadf53e
1 changed files with 4 additions and 2 deletions
|
@ -10,7 +10,8 @@ project(interface)
|
|||
|
||||
if (APPLE)
|
||||
# link in required OS X frameworks and include the right GL headers
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework CoreServices -framework Carbon -framework GLUT")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework CoreAudio -framework AudioToolbox
|
||||
-framework AudioUnit -framework CoreServices -framework Carbon -framework GLUT")
|
||||
set(GL_HEADERS "#include <GLUT/glut.h>\n#include <OpenGL/glext.h>")
|
||||
else (APPLE)
|
||||
# include the right GL headers for UNIX
|
||||
|
@ -19,7 +20,8 @@ endif (APPLE)
|
|||
|
||||
if (WIN32)
|
||||
set(GLUT_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/external/glut)
|
||||
set(GL_HEADERS "#define GLEW_STATIC\n#define FREEGLUT_STATIC\n#define FREEGLUT_LIB_PRAGMAS 0\n#include <GL/glew.h>\n#include <GL/freeglut_std.h>\n#include <GL/freeglut_ext.h>")
|
||||
set(GL_HEADERS "#define GLEW_STATIC\n#define FREEGLUT_STATIC\n#define FREEGLUT_LIB_PRAGMAS 0\n
|
||||
#include <GL/glew.h>\n#include <GL/freeglut_std.h>\n#include <GL/freeglut_ext.h>")
|
||||
endif (WIN32)
|
||||
|
||||
# create the InterfaceConfig.h file based on GL_HEADERS above
|
||||
|
|
Loading…
Reference in a new issue