CMakeLists.txt
changeset 8133 f24acf2403c0
parent 8126 fce84c934f9e
child 8136 175cac5d90a6
equal deleted inserted replaced
8132:06922987b6ff 8133:f24acf2403c0
   961     set(HAVE_SDL_POWER TRUE)
   961     set(HAVE_SDL_POWER TRUE)
   962     set(SDL_FRAMEWORK_CARBON 1)
   962     set(SDL_FRAMEWORK_CARBON 1)
   963     set(SDL_FRAMEWORK_IOKIT 1)
   963     set(SDL_FRAMEWORK_IOKIT 1)
   964   endif()
   964   endif()
   965 
   965 
       
   966   if(SDL_TIMERS)
       
   967     set(SDL_TIMER_UNIX 1)
       
   968     file(GLOB TIMER_SOURCES ${SDL2_SOURCE_DIR}/src/timer/unix/*.c)
       
   969     set(SOURCE_FILES ${SOURCE_FILES} ${TIMER_SOURCES})
       
   970     set(HAVE_SDL_TIMERS TRUE)
       
   971   endif(SDL_TIMERS)
       
   972 
   966   if(SDL_FILESYSTEM)
   973   if(SDL_FILESYSTEM)
   967     set(SDL_FILESYSTEM_COCOA 1)
   974     set(SDL_FILESYSTEM_COCOA 1)
   968     file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/cocoa/*.m)
   975     file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/cocoa/*.m)
   969     set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
   976     set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
   970     set(HAVE_SDL_FILESYSTEM TRUE)
   977     set(HAVE_SDL_FILESYSTEM TRUE)
  1021 
  1028 
  1022     set(SDL_FILESYSTEM_HAIKU 1)
  1029     set(SDL_FILESYSTEM_HAIKU 1)
  1023     file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/haiku/*.cc)
  1030     file(GLOB FILESYSTEM_SOURCES ${SDL2_SOURCE_DIR}/src/filesystem/haiku/*.cc)
  1024     set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
  1031     set(SOURCE_FILES ${SOURCE_FILES} ${FILESYSTEM_SOURCES})
  1025     set(HAVE_SDL_FILESYSTEM TRUE)
  1032     set(HAVE_SDL_FILESYSTEM TRUE)
       
  1033 
       
  1034     if(SDL_TIMERS)
       
  1035       set(SDL_TIMER_HAIKU 1)
       
  1036       file(GLOB TIMER_SOURCES ${SDL2_SOURCE_DIR}/src/timer/haiku/*.c)
       
  1037       set(SOURCE_FILES ${SOURCE_FILES} ${TIMER_SOURCES})
       
  1038       set(HAVE_SDL_TIMERS TRUE)
       
  1039     endif(SDL_TIMERS)
  1026 
  1040 
  1027     if(VIDEO_OPENGL)
  1041     if(VIDEO_OPENGL)
  1028       # TODO: Use FIND_PACKAGE(OpenGL) instead
  1042       # TODO: Use FIND_PACKAGE(OpenGL) instead
  1029       set(SDL_VIDEO_OPENGL 1)
  1043       set(SDL_VIDEO_OPENGL 1)
  1030       set(SDL_VIDEO_OPENGL_BGL 1)
  1044       set(SDL_VIDEO_OPENGL_BGL 1)