blob: 7e783ee5bb4c12a3fbcc2b728c8a5fa0fd5b6e57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
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 .)
|