Skip to content
Permalink
Browse files

CMake: Enable missing timer subsystem on Mac OS X and Haiku.

  • Loading branch information
icculus committed Jan 28, 2014
1 parent 2efa2dc commit 9d85cdb1a6bd2635d078448802136b4458ebbfde
Showing with 14 additions and 0 deletions.
  1. +14 −0 CMakeLists.txt
@@ -963,6 +963,13 @@ elseif(APPLE)
set(SDL_FRAMEWORK_IOKIT 1)
endif()

if(SDL_TIMERS)
set(SDL_TIMER_UNIX 1)
file(GLOB TIMER_SOURCES ${SDL2_SOURCE_DIR}/src/timer/unix/*.c)
set(SOURCE_FILES ${SOURCE_FILES} ${TIMER_SOURCES})
set(HAVE_SDL_TIMERS TRUE)
endif(SDL_TIMERS)

if(SDL_FILESYSTEM)
set(SDL_FILESYSTEM_COCOA 1)
file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/cocoa/*.m)
@@ -1024,6 +1031,13 @@ elseif(HAIKU)
set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
set(HAVE_SDL_FILESYSTEM TRUE)

if(SDL_TIMERS)
set(SDL_TIMER_HAIKU 1)
file(GLOB TIMER_SOURCES ${SDL2_SOURCE_DIR}/src/timer/haiku/*.c)
set(SOURCE_FILES ${SOURCE_FILES} ${TIMER_SOURCES})
set(HAVE_SDL_TIMERS TRUE)
endif(SDL_TIMERS)

if(VIDEO_OPENGL)
# TODO: Use FIND_PACKAGE(OpenGL) instead
set(SDL_VIDEO_OPENGL 1)

0 comments on commit 9d85cdb

Please sign in to comment.