CMakeLists.txt
changeset 9313 6f04557c6e1f
parent 9312 705bdbbb1f37
child 9408 93ba64cb5e16
equal deleted inserted replaced
9312:705bdbbb1f37 9313:6f04557c6e1f
  1049     message_error("SDL_FILE must be enabled to build on MacOS X")
  1049     message_error("SDL_FILE must be enabled to build on MacOS X")
  1050   endif()
  1050   endif()
  1051 
  1051 
  1052   if(SDL_AUDIO)
  1052   if(SDL_AUDIO)
  1053     set(SDL_AUDIO_DRIVER_COREAUDIO 1)
  1053     set(SDL_AUDIO_DRIVER_COREAUDIO 1)
  1054     set(MACOSX_COREAUDIO 1)
       
  1055     file(GLOB AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/coreaudio/*.c)
  1054     file(GLOB AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/coreaudio/*.c)
  1056     set(SOURCE_FILES ${SOURCE_FILES} ${AUDIO_SOURCES})
  1055     set(SOURCE_FILES ${SOURCE_FILES} ${AUDIO_SOURCES})
  1057     set(HAVE_SDL_AUDIO TRUE)
  1056     set(HAVE_SDL_AUDIO TRUE)
  1058     set(SDL_FRAMEWORK_COREAUDIO 1)
  1057     set(SDL_FRAMEWORK_COREAUDIO 1)
  1059     set(SDL_FRAMEWORK_AUDIOUNIT 1)
  1058     set(SDL_FRAMEWORK_AUDIOUNIT 1)