Mac OS X port progress

Tested-by: Christopher Eklund <eklundchristopher@gmail.com>
Signed-off-by: otfallen <f.fallen45@gmail.com>
Signed-off-by: Christopher Eklund <eklundchristopher@gmail.com>
This commit is contained in:
otfallen 2012-09-29 22:57:14 +00:00
parent 3b7ad41740
commit f0e85e21b3
1 changed files with 11 additions and 1 deletions

View File

@ -255,7 +255,15 @@ if(FRAMEWORK_GRAPHICS)
set(framework_INCLUDE_DIRS ${framework_INCLUDE_DIRS} ${EGL_INCLUDE_DIR} ${OPENGLES1_INCLUDE_DIR})
set(framework_LIBRARIES ${framework_LIBRARIES} ${EGL_LIBRARY} ${OPENGLES1_LIBRARY})
else()
find_package(OpenGL REQUIRED)
## TODO: CMake Documentation says that this is not the right
# Thing for Mac OS X, but it works for now.
if(APPLE)
include_directories(/usr/X11R6/include/)
link_directories(/usr/X11R6/lib/)
SET(OPENGL_LIBRARIES GL)
else()
find_package(OpenGL REQUIRED)
endif()
find_package(GLEW REQUIRED)
set(framework_LIBRARIES ${framework_LIBRARIES} ${GLEW_LIBRARY} ${OPENGL_LIBRARIES})
endif()
@ -394,6 +402,8 @@ if(FRAMEWORK_SOUND)
if(WIN32)
set(framework_LIBRARIES ${framework_LIBRARIES} winmm)
elseif(APPLE)
set(framework_LIBRARIES ${framework_LIBRARIES} System)
else()
set(framework_LIBRARIES ${framework_LIBRARIES} rt)
endif()