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:
parent
3b7ad41740
commit
f0e85e21b3
|
@ -255,7 +255,15 @@ if(FRAMEWORK_GRAPHICS)
|
||||||
set(framework_INCLUDE_DIRS ${framework_INCLUDE_DIRS} ${EGL_INCLUDE_DIR} ${OPENGLES1_INCLUDE_DIR})
|
set(framework_INCLUDE_DIRS ${framework_INCLUDE_DIRS} ${EGL_INCLUDE_DIR} ${OPENGLES1_INCLUDE_DIR})
|
||||||
set(framework_LIBRARIES ${framework_LIBRARIES} ${EGL_LIBRARY} ${OPENGLES1_LIBRARY})
|
set(framework_LIBRARIES ${framework_LIBRARIES} ${EGL_LIBRARY} ${OPENGLES1_LIBRARY})
|
||||||
else()
|
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)
|
find_package(GLEW REQUIRED)
|
||||||
set(framework_LIBRARIES ${framework_LIBRARIES} ${GLEW_LIBRARY} ${OPENGL_LIBRARIES})
|
set(framework_LIBRARIES ${framework_LIBRARIES} ${GLEW_LIBRARY} ${OPENGL_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
@ -394,6 +402,8 @@ if(FRAMEWORK_SOUND)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(framework_LIBRARIES ${framework_LIBRARIES} winmm)
|
set(framework_LIBRARIES ${framework_LIBRARIES} winmm)
|
||||||
|
elseif(APPLE)
|
||||||
|
set(framework_LIBRARIES ${framework_LIBRARIES} System)
|
||||||
else()
|
else()
|
||||||
set(framework_LIBRARIES ${framework_LIBRARIES} rt)
|
set(framework_LIBRARIES ${framework_LIBRARIES} rt)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue