project(mossrose) add_executable(example ${CMAKE_CURRENT_LIST_DIR}/example.c) target_link_libraries(example mossrose) add_dependencies(examples example) add_executable(panning ${CMAKE_CURRENT_LIST_DIR}/panning.c) target_link_libraries(panning mossrose) add_dependencies(examples panning) add_executable(loop ${CMAKE_CURRENT_LIST_DIR}/loop.c) target_link_libraries(loop mossrose) add_dependencies(examples loop) add_executable(callback ${CMAKE_CURRENT_LIST_DIR}/callback.c) target_link_libraries(callback mossrose) add_dependencies(examples callback) add_executable(mp3 ${CMAKE_CURRENT_LIST_DIR}/mp3.c) target_link_libraries(mp3 mossrose) add_dependencies(examples mp3) file(COPY ${CMAKE_CURRENT_LIST_DIR}/sine-mono.mp3 DESTINATION .) file(COPY ${CMAKE_CURRENT_LIST_DIR}/weird-stereo.mp3 DESTINATION .) add_executable(wave ${CMAKE_CURRENT_LIST_DIR}/wav.c) target_link_libraries(wave mossrose) add_dependencies(examples wave) file(COPY ${CMAKE_CURRENT_LIST_DIR}/mono-16bit-pcm.wav DESTINATION .) file(COPY ${CMAKE_CURRENT_LIST_DIR}/mono-24bit-pcm.wav DESTINATION .) file(COPY ${CMAKE_CURRENT_LIST_DIR}/mono-float-pcm.wav DESTINATION .) file(COPY ${CMAKE_CURRENT_LIST_DIR}/stereo-16bit-pcm.wav DESTINATION .) file(COPY ${CMAKE_CURRENT_LIST_DIR}/stereo-24bit-pcm.wav DESTINATION .) file(COPY ${CMAKE_CURRENT_LIST_DIR}/stereo-float-pcm.wav DESTINATION .)