-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
58 lines (50 loc) · 1.91 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
cmake_minimum_required (VERSION 3.13)
project(LabSynthToy)
# Don't report that sample file installation up to date
set(CMAKE_INSTALL_MESSAGE LAZY)
set(LABSYNTHTOY_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
configure_file("${LABSYNTHTOY_ROOT}/LabSynthToy.config.h" "${LABSYNTHTOY_ROOT}/LabSynthToy.h" @ONLY)
#option(LABSOUND_USE_MINIAUDIO "Use miniaudio" OFF)
#option(LABSOUND_USE_RTAUDIO "Use RtAudio" ON)
add_subdirectory(LabSound)
if (APPLE)
set(PLATFORM_LIBS
"-framework AudioToolbox"
"-framework AudioUnit"
"-framework Accelerate"
"-framework Cocoa"
"-framework CoreAudio"
# "-framework Metal"
# "-framework MetalKit"
# "-framework QuartzCore"
)
endif()
add_executable(LabSynthToy
TinySoundFont/tml.h
TinySoundFont/tsf.h
TinySoundFontNode.h
TinySoundFontNode.cpp
PocketModNode.h
PocketModNode.cpp
LabSoundTemplateNode.h
LabSoundTemplateNode.cpp
LabSynthToy.h
LabSynthToy.cpp)
target_link_libraries(LabSynthToy Lab::Sound ${PLATFORM_LIBS})
target_include_directories(LabSynthToy PRIVATE "${LABSYNTHTOY_ROOT}")
install(TARGETS LabSynthToy RUNTIME DESTINATION bin)
install(FILES
"${LABSYNTHTOY_ROOT}/TinySoundFont/examples/florestan-subset.sf2"
"${LABSYNTHTOY_ROOT}/TinySoundFont/examples/venture.mid"
"${LABSYNTHTOY_ROOT}/pocketmod/songs/bananasplit.mod"
"${LABSYNTHTOY_ROOT}/pocketmod/songs/chill.mod"
"${LABSYNTHTOY_ROOT}/pocketmod/songs/elysium.mod"
"${LABSYNTHTOY_ROOT}/pocketmod/songs/king.mod"
"${LABSYNTHTOY_ROOT}/pocketmod/songs/nemesis.mod"
"${LABSYNTHTOY_ROOT}/pocketmod/songs/overture.mod"
"${LABSYNTHTOY_ROOT}/pocketmod/songs/spacedeb.mod"
"${LABSYNTHTOY_ROOT}/pocketmod/songs/stardstm.mod"
"${LABSYNTHTOY_ROOT}/pocketmod/songs/sundance.mod"
"${LABSYNTHTOY_ROOT}/pocketmod/songs/sundown.mod"
"${LABSYNTHTOY_ROOT}/pocketmod/songs/supernova.mod"
DESTINATION share/LabSynthToy)