view EXAMPLES/CMakeLists.txt @ 50:db5bc1c80057

Workaround for terrible iOS 5.0 regression bug in Apple's OpenAL implementation with regards to resetting streaming sources. The fix uses a version check to determine if the workaround is employed. Once Apple fixes the problem, an upper bounds version check should be added.
author Eric Wing <ewing@anscamobile.com>
date Fri, 21 Oct 2011 17:14:19 -0700
parents ee50db043251
children
line wrap: on
line source


INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR} ${OPENAL_INCLUDE_DIR} ${SDL_INCLUDE_DIR} ${SDL_SOUND_INCLUDE_DIR})


IF(APPLE)
	IF(NOT ALMIXER_COMPILE_WITHOUT_SDL)
		SET(SUPPORT_FILES SDLMain.m)
	ENDIF(NOT ALMIXER_COMPILE_WITHOUT_SDL)
ENDIF(APPLE)


ADD_EXECUTABLE(playstream ${CMAKE_CURRENT_SOURCE_DIR}/playstream.c ${SUPPORT_FILES})
TARGET_LINK_LIBRARIES(playstream ALmixer ${OPENAL_LIBRARY} ${SDL_SOUND_LIBRARIES} ${SDL_LIBRARY})

ADD_EXECUTABLE(playsound ${CMAKE_CURRENT_SOURCE_DIR}/playsound.c ${SUPPORT_FILES})
TARGET_LINK_LIBRARIES(playsound ALmixer ${OPENAL_LIBRARY} ${SDL_SOUND_LIBRARIES} ${SDL_LIBRARY})