-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
108 lines (95 loc) · 2.61 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
if(NOT TARGET score_lib_base)
include("${SCORE_SOURCE_DIR}/cmake/ScoreExternalAddon.cmake")
endif()
include(ScoreAvndHelper)
project(score_addon_pico LANGUAGES CXX)
set(AVND_FOLDER "${3RDPARTY_FOLDER}/avendish")
add_library(score_addon_pico
Pico/ApplicationPlugin.hpp
Pico/ApplicationPlugin.cpp
Pico/DeviceIO.hpp
Pico/DeviceIO.cpp
Pico/DeviceGraph.hpp
Pico/DeviceGraph.cpp
Pico/ExportDialog.hpp
Pico/ExportDialog.cpp
Pico/BasicSourcePrinter.hpp
Pico/BasicSourcePrinter.cpp
Pico/ESPSourcePrinter.hpp
Pico/ESPSourcePrinter.cpp
Pico/SourcePrinter.hpp
Pico/SourcePrinter.cpp
Pico/LibossiaGenerator.hpp
Pico/LibossiaGenerator.cpp
Pico/OSCQueryGenerator.hpp
Pico/OSCQueryGenerator.cpp
Pico/Pruner.hpp
Pico/Pruner.cpp
score_addon_pico.hpp
score_addon_pico.cpp
)
target_compile_definitions(score_addon_pico PRIVATE "PICO_SOURCE_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}\"")
target_link_libraries(score_addon_pico PRIVATE score_plugin_protocols)
avnd_score_plugin_init(BASE_TARGET score_addon_pico)
macro(add_math_process FuncName)
string(TOLOWER "${FuncName}" SmallFuncName)
avnd_score_plugin_add(
BASE_TARGET score_addon_pico
SOURCES "${AVND_FOLDER}/examples/Advanced/Utilities/Logic.hpp"
TARGET avnd_blocks_${SmallFuncName}
MAIN_CLASS ${FuncName}
NAMESPACE avnd::blocks
)
endmacro()
add_math_process(Abs)
add_math_process(Sin)
add_math_process(Cos)
add_math_process(Floor)
add_math_process(Trunc)
add_math_process(Round)
add_math_process(Modulo)
add_math_process(Min)
add_math_process(Max)
add_math_process(Lerp)
add_math_process(Clamp)
add_math_process(Equal)
add_math_process(Different)
add_math_process(Greater)
add_math_process(GreaterEqual)
add_math_process(Lesser)
add_math_process(LesserEqual)
add_math_process(Spigot)
add_math_process(Choice)
avnd_score_plugin_add(
BASE_TARGET score_addon_pico
SOURCES "${AVND_FOLDER}/examples/Advanced/Utilities/LFO.hpp"
TARGET avnd_blocks_lfo_x
MAIN_CLASS LFO
NAMESPACE ao
)
avnd_score_plugin_add(
BASE_TARGET score_addon_pico
SOURCES "${AVND_FOLDER}/examples/Advanced/Utilities/Automation.hpp"
TARGET automation
MAIN_CLASS Automation
NAMESPACE ao
)
avnd_score_plugin_add(
BASE_TARGET score_addon_pico
SOURCES "${AVND_FOLDER}/examples/Advanced/Utilities/Mapping.hpp"
TARGET mapping
MAIN_CLASS Mapping
NAMESPACE ao
)
avnd_score_plugin_add(
BASE_TARGET score_addon_pico
SOURCES "${AVND_FOLDER}/examples/Advanced/Utilities/Soundfile.hpp"
TARGET soundfile
MAIN_CLASS Soundfile
NAMESPACE ao
)
avnd_score_plugin_finalize(
BASE_TARGET score_addon_pico
CUSTOM_PLUGIN
)