Mercurial > hg > orthanc-stone
changeset 5:d9452f5a5346
fix build on Mac OS X
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 17 Oct 2016 13:14:57 +0200 |
parents | 00ff2cd06d13 |
children | fcff71deac7b |
files | Resources/CMake/SdlConfiguration.cmake |
diffstat | 1 files changed, 9 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/CMake/SdlConfiguration.cmake Mon Oct 17 08:37:54 2016 +0200 +++ b/Resources/CMake/SdlConfiguration.cmake Mon Oct 17 13:14:57 2016 +0200 @@ -160,7 +160,7 @@ ${SDL_SOURCES_DIR}/src/render/software/*.c ${SDL_SOURCES_DIR}/src/thread/pthread/*.c ${SDL_SOURCES_DIR}/src/timer/unix/*.c - ${SDL_SOURCES_DIR}/src/video/cocoa/*.c + ${SDL_SOURCES_DIR}/src/video/cocoa/*.m ) list(APPEND SDL_SOURCES ${TMP}) @@ -171,18 +171,21 @@ -DSDL_TIMER_UNIX=1 -DSDL_POWER_DISABLED=1 - -DSDL_VIDEO_DRIVER_X11=1 + -DSDL_VIDEO_DRIVER_COCOA=1 -DSDL_VIDEO_OPENGL=1 - -DSDL_VIDEO_OPENGL_ES2=1 + -DSDL_VIDEO_OPENGL_CGL=1 -DSDL_VIDEO_RENDER_OGL=1 - -DSDL_VIDEO_RENDER_OGL_ES2=1 - -DSDL_VIDEO_OPENGL_GLX=1 - -DSDL_VIDEO_OPENGL_EGL=1 -DSDL_ASSEMBLY_ROUTINES=1 -DSDL_THREAD_PTHREAD_RECURSIVE_MUTEX=1 ) + find_library(CARBON_LIBRARY Carbon) + find_library(COCOA_LIBRARY Cocoa) + find_library(IOKIT_LIBRARY IOKit) + find_library(QUARTZ_LIBRARY QuartzCore) + link_libraries(${CARBON_LIBRARY} ${COCOA_LIBRARY} ${IOKIT_LIBRARY} ${QUARTZ_LIBRARY}) + endif() else()