mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
compiling the gpu library on mac
This commit is contained in:
parent
1102b4d633
commit
da1bb83eb0
2 changed files with 3 additions and 8 deletions
|
@ -8,16 +8,10 @@ include_glm()
|
||||||
link_hifi_libraries(shared)
|
link_hifi_libraries(shared)
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
# link in required OS X frameworks and include the right GL headers
|
# link in required OS X frameworks and include the right GL headers
|
||||||
find_library(CoreFoundation CoreFoundation)
|
|
||||||
find_library(OpenGL OpenGL)
|
find_library(OpenGL OpenGL)
|
||||||
|
|
||||||
target_link_libraries(${TARGET_NAME} ${CoreFoundation} ${OpenGL})
|
target_link_libraries(${TARGET_NAME} ${OpenGL})
|
||||||
|
|
||||||
# install command for OS X bundle
|
|
||||||
INSTALL(TARGETS ${TARGET_NAME}
|
|
||||||
BUNDLE DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/install" COMPONENT Runtime
|
|
||||||
RUNTIME DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/install" COMPONENT Runtime
|
|
||||||
)
|
|
||||||
else (APPLE)
|
else (APPLE)
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,8 @@
|
||||||
|
|
||||||
#define GL_GLEXT_PROTOTYPES 1
|
#define GL_GLEXT_PROTOTYPES 1
|
||||||
|
|
||||||
#if defined(APPLE)
|
#ifdef __APPLE__
|
||||||
|
#include <OpenGL/gl.h>
|
||||||
#include <OpenGL/glext.h>
|
#include <OpenGL/glext.h>
|
||||||
|
|
||||||
#elif defined(UNIX)
|
#elif defined(UNIX)
|
||||||
|
|
Loading…
Reference in a new issue