mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 07:22:31 +02: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)
|
||||
if (APPLE)
|
||||
# link in required OS X frameworks and include the right GL headers
|
||||
find_library(CoreFoundation CoreFoundation)
|
||||
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)
|
||||
find_package(OpenGL REQUIRED)
|
||||
|
||||
|
|
|
@ -14,7 +14,8 @@
|
|||
|
||||
#define GL_GLEXT_PROTOTYPES 1
|
||||
|
||||
#if defined(APPLE)
|
||||
#ifdef __APPLE__
|
||||
#include <OpenGL/gl.h>
|
||||
#include <OpenGL/glext.h>
|
||||
|
||||
#elif defined(UNIX)
|
||||
|
|
Loading…
Reference in a new issue