summaryrefslogtreecommitdiff
path: root/examples/CMakeLists.txt
blob: 3797392817dfb3eec38f513148cd7e6f6f8a9ef0 (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
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 .)