diff options
author | Chris Robinson <[email protected]> | 2017-11-07 23:08:17 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-11-07 23:12:12 -0800 |
commit | 0e2e9e9a299a3901f6db402b721084e6105cffdf (patch) | |
tree | a74b0a55842b35a1d8fc9dfb7c575cbab444ca86 /CMakeLists.txt | |
parent | 7c88e4a16b1976417e1064dcc7fb59039ccc7bf4 (diff) |
Add a simple non-streaming play example
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8055146f..fb65489f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1495,6 +1495,13 @@ IF(ALSOFT_EXAMPLES) IF(SDL_SOUND_FOUND) SET(EX_COMMON_OBJS examples/common/alhelpers.c) + ADD_EXECUTABLE(alplay examples/alplay.c ${COMMON_OBJS} ${EX_COMMON_OBJS}) + TARGET_LINK_LIBRARIES(alplay ${SDL_SOUND_LIBRARIES} ${SDL2_LIBRARY} OpenAL) + SET_PROPERTY(TARGET alplay APPEND PROPERTY COMPILE_FLAGS ${EXTRA_CFLAGS}) + SET_PROPERTY(TARGET alplay APPEND PROPERTY + INCLUDE_DIRECTORIES ${SDL2_INCLUDE_DIR} ${SDL_SOUND_INCLUDE_DIR} + ) + ADD_EXECUTABLE(alstream examples/alstream.c ${COMMON_OBJS} ${EX_COMMON_OBJS}) TARGET_LINK_LIBRARIES(alstream ${SDL_SOUND_LIBRARIES} ${SDL2_LIBRARY} OpenAL) SET_PROPERTY(TARGET alstream APPEND PROPERTY COMPILE_FLAGS ${EXTRA_CFLAGS}) @@ -1531,7 +1538,7 @@ IF(ALSOFT_EXAMPLES) ) IF(ALSOFT_INSTALL) - INSTALL(TARGETS alstream alreverb allatency alloopback alhrtf + INSTALL(TARGETS alplay alstream alreverb allatency alloopback alhrtf RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} |