CMake: Enable missing timer subsystem on Mac OS X and Haiku.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 28 Jan 2014 00:05:23 -0500
changeset 8133f24acf2403c0
parent 8132 06922987b6ff
child 8134 7c9192be51a7
CMake: Enable missing timer subsystem on Mac OS X and Haiku.
CMakeLists.txt
     1.1 --- a/CMakeLists.txt	Mon Jan 27 13:43:04 2014 -0800
     1.2 +++ b/CMakeLists.txt	Tue Jan 28 00:05:23 2014 -0500
     1.3 @@ -963,6 +963,13 @@
     1.4      set(SDL_FRAMEWORK_IOKIT 1)
     1.5    endif()
     1.6  
     1.7 +  if(SDL_TIMERS)
     1.8 +    set(SDL_TIMER_UNIX 1)
     1.9 +    file(GLOB TIMER_SOURCES ${SDL2_SOURCE_DIR}/src/timer/unix/*.c)
    1.10 +    set(SOURCE_FILES ${SOURCE_FILES} ${TIMER_SOURCES})
    1.11 +    set(HAVE_SDL_TIMERS TRUE)
    1.12 +  endif(SDL_TIMERS)
    1.13 +
    1.14    if(SDL_FILESYSTEM)
    1.15      set(SDL_FILESYSTEM_COCOA 1)
    1.16      file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/cocoa/*.m)
    1.17 @@ -1024,6 +1031,13 @@
    1.18      set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
    1.19      set(HAVE_SDL_FILESYSTEM TRUE)
    1.20  
    1.21 +    if(SDL_TIMERS)
    1.22 +      set(SDL_TIMER_HAIKU 1)
    1.23 +      file(GLOB TIMER_SOURCES ${SDL2_SOURCE_DIR}/src/timer/haiku/*.c)
    1.24 +      set(SOURCE_FILES ${SOURCE_FILES} ${TIMER_SOURCES})
    1.25 +      set(HAVE_SDL_TIMERS TRUE)
    1.26 +    endif(SDL_TIMERS)
    1.27 +
    1.28      if(VIDEO_OPENGL)
    1.29        # TODO: Use FIND_PACKAGE(OpenGL) instead
    1.30        set(SDL_VIDEO_OPENGL 1)