|
|
|
@ -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()
|
|
|
|
|