-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (22 loc) · 1.11 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.10)
project(low_latency_audio_decode)
add_subdirectory(portaudio EXCLUDE_FROM_ALL)
add_subdirectory(dr_libs)
add_subdirectory(buffering_file_source)
add_library(Deps INTERFACE)
target_link_libraries(Deps INTERFACE portaudio dr_libs)
target_compile_features(Deps INTERFACE cxx_std_14)
add_executable(0_playback 0_playback.cpp)
target_link_libraries(0_playback Deps)
add_executable(1_playback_underrun 1_playback_underrun.cpp)
target_link_libraries(1_playback_underrun Deps)
add_executable(2_playback_from_decode_file 2_playback_from_decode_file.cpp)
target_link_libraries(2_playback_from_decode_file Deps)
add_executable(2_playback_from_decode_file_wav 2_playback_from_decode_file_wav.cpp)
target_link_libraries(2_playback_from_decode_file_wav Deps)
add_executable(3_playback_from_memory 3_playback_from_memory.cpp)
target_link_libraries(3_playback_from_memory Deps)
add_executable(4_playback_mmap 4_playback_mmap.cpp)
target_link_libraries(4_playback_mmap Deps)
add_executable(5_playback_buffering 5_playback_buffering.cpp)
target_link_libraries(5_playback_buffering Deps buffering_file_source)