-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.deps.txt
457 lines (422 loc) · 17.8 KB
/
CMakeLists.deps.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
# -*- mode: cmake; -*-
find_package(PkgConfig)
###
add_library(uchardet STATIC EXCLUDE_FROM_ALL
"thirdparty/uchardet/src/CharDistribution.cpp"
"thirdparty/uchardet/src/JpCntx.cpp"
"thirdparty/uchardet/src/nsCharSetProber.cpp"
"thirdparty/uchardet/src/nsLatin1Prober.cpp"
"thirdparty/uchardet/src/nsMBCSSM.cpp"
"thirdparty/uchardet/src/nsSJISProber.cpp"
"thirdparty/uchardet/src/nsUTF8Prober.cpp")
target_include_directories(uchardet PUBLIC
"thirdparty/uchardet/src")
add_library(vendor::uchardet ALIAS uchardet)
###
add_library(any-lite INTERFACE)
target_include_directories(any-lite INTERFACE "thirdparty/any-lite/include")
add_library(vendor::any-lite ALIAS any-lite)
###
add_library(span-lite INTERFACE)
target_include_directories(span-lite INTERFACE "thirdparty/span-lite/include")
add_library(vendor::span-lite ALIAS span-lite)
###
add_library(scope-lite INTERFACE)
target_include_directories(scope-lite INTERFACE "thirdparty/scope-lite/include")
add_library(vendor::scope-lite ALIAS scope-lite)
###
add_library(string-view-lite INTERFACE)
target_include_directories(string-view-lite INTERFACE "thirdparty/string-view-lite/include")
add_library(vendor::string-view-lite ALIAS string-view-lite)
###
add_library(utf INTERFACE)
target_include_directories(utf INTERFACE "thirdparty/utf")
add_library(vendor::utf ALIAS utf)
###
add_library(filesystem INTERFACE)
target_include_directories(filesystem INTERFACE "thirdparty/filesystem/include")
add_library(vendor::filesystem ALIAS filesystem)
###
add_library(simpleini STATIC EXCLUDE_FROM_ALL "thirdparty/simpleini/ConvertUTF.cpp")
target_compile_definitions(simpleini PUBLIC "SI_CONVERT_GENERIC=1")
target_include_directories(simpleini INTERFACE "thirdparty/simpleini")
add_library(vendor::simpleini ALIAS simpleini)
###
add_library(ring-buffer STATIC EXCLUDE_FROM_ALL "thirdparty/ring_buffer/ring_buffer.cpp")
target_include_directories(ring-buffer PUBLIC "thirdparty/ring_buffer")
add_library(vendor::ring-buffer ALIAS ring-buffer)
###
add_library(fmidi STATIC EXCLUDE_FROM_ALL "thirdparty/fmidi/sources/fmidi/fmidi_mini.cc")
target_compile_definitions(fmidi PUBLIC "FMIDI_STATIC=1" "FMIDI_DISABLE_DESCRIBE_API=1")
target_include_directories(fmidi PUBLIC "thirdparty/fmidi/sources")
add_library(vendor::fmidi ALIAS fmidi)
###
add_library(stb INTERFACE)
target_include_directories(stb INTERFACE "thirdparty/stb")
add_library(vendor::stb ALIAS stb)
###
add_library(smoothers INTERFACE)
target_include_directories(smoothers INTERFACE "thirdparty/smoothers/src")
add_library(vendor::smoothers ALIAS smoothers)
###
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
pkg_check_modules(alsa "alsa" REQUIRED IMPORTED_TARGET)
add_library(alsa INTERFACE)
target_link_libraries(alsa INTERFACE PkgConfig::alsa)
add_library(sys::alsa ALIAS alsa)
endif()
###
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
pkg_check_modules(pulseaudio "libpulse-simple" IMPORTED_TARGET)
if(pulseaudio_FOUND)
add_library(pulseaudio INTERFACE)
target_link_libraries(pulseaudio INTERFACE PkgConfig::pulseaudio)
add_library(sys::pulseaudio ALIAS pulseaudio)
endif()
endif()
###
find_library(SOUNDIO_LIBRARY "soundio")
find_path(SOUNDIO_INCLUDE_DIR "soundio/soundio.h")
if(NOT SOUNDIO_LIBRARY OR NOT SOUNDIO_INCLUDE_DIR)
message(STATUS "Cannot find soundio")
else()
message(STATUS "Found soundio library: ${SOUNDIO_LIBRARY}")
message(STATUS "Found soundio headers: ${SOUNDIO_INCLUDE_DIR}")
add_library(soundio INTERFACE)
target_include_directories(soundio INTERFACE "${SOUNDIO_INCLUDE_DIR}")
target_link_libraries(soundio INTERFACE "${SOUNDIO_LIBRARY}")
add_library(sys::soundio ALIAS soundio)
endif()
###
add_library(rtmidi STATIC EXCLUDE_FROM_ALL "thirdparty/rtmidi/RtMidi.cpp")
target_include_directories(rtmidi PUBLIC "thirdparty/rtmidi")
target_compile_definitions(rtmidi PUBLIC "__RTMIDI_DUMMY__")
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_compile_definitions(rtmidi PUBLIC "__LINUX_ALSA__")
target_link_libraries(rtmidi PUBLIC sys::alsa)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
target_compile_definitions(rtmidi PUBLIC "__WINDOWS_MM__")
target_link_libraries(rtmidi PUBLIC "winmm")
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
target_compile_definitions(rtmidi PUBLIC "__MACOSX_CORE__")
find_library(COREAUDIO_LIBRARY "CoreAudio")
find_library(COREMIDI_LIBRARY "CoreMIDI")
find_library(FOUNDATION_LIBRARY "Foundation")
target_link_libraries(rtmidi PUBLIC "${COREAUDIO_LIBRARY}" "${COREMIDI_LIBRARY}" "${FOUNDATION_LIBRARY}")
endif()
add_library(vendor::rtmidi ALIAS rtmidi)
###
add_library(rtaudio STATIC EXCLUDE_FROM_ALL "thirdparty/rtaudio/RtAudio.cpp")
target_include_directories(rtaudio PUBLIC "thirdparty/rtaudio")
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_compile_definitions(rtaudio PUBLIC "__LINUX_ALSA__")
target_link_libraries(rtaudio PUBLIC sys::alsa)
if(TARGET sys::pulseaudio)
target_compile_definitions(rtaudio PUBLIC "__LINUX_PULSE__")
target_link_libraries(rtaudio PUBLIC sys::pulseaudio)
endif()
elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
target_compile_definitions(rtaudio PUBLIC "__WINDOWS_DS__")
target_link_libraries(rtaudio PUBLIC "dsound")
target_compile_definitions(rtaudio PUBLIC "__WINDOWS_WASAPI__")
target_link_libraries(rtaudio PUBLIC "ksuser" "mfplat" "mfuuid" "wmcodecdspuuid")
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
target_compile_definitions(rtaudio PUBLIC "__MACOSX_CORE__")
find_library(COREAUDIO_LIBRARY "CoreAudio")
find_library(FOUNDATION_LIBRARY "Foundation")
target_link_libraries(rtaudio PUBLIC "${COREAUDIO_LIBRARY}" "${FOUNDATION_LIBRARY}")
endif()
add_library(vendor::rtaudio ALIAS rtaudio)
###
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
pkg_check_modules(jack "jack" REQUIRED IMPORTED_TARGET)
add_library(jack INTERFACE)
target_link_libraries(jack INTERFACE PkgConfig::jack)
add_library(sys::jack ALIAS jack)
endif()
###
find_package(SDL2 REQUIRED)
if(TARGET SDL2::SDL2)
add_library(SDL2 INTERFACE)
target_link_libraries(SDL2 INTERFACE SDL2::SDL2)
else()
add_library(SDL2 INTERFACE)
string(STRIP "${SDL2_INCLUDE_DIRS}" SDL2_INCLUDE_DIRS)
string(STRIP "${SDL2_LIBRARIES}" SDL2_LIBRARIES)
target_include_directories(SDL2 INTERFACE ${SDL2_INCLUDE_DIRS})
target_link_libraries(SDL2 INTERFACE ${SDL2_LIBRARIES})
endif()
add_library(sys::SDL2 ALIAS SDL2)
###
find_library(SDL2_IMAGE_LIBRARY "SDL2_image")
if(NOT SDL2_IMAGE_LIBRARY)
message(WARNING "Cannot find library SDL2_image")
else()
add_library(SDL2_image INTERFACE)
target_link_libraries(SDL2_image INTERFACE "${SDL2_IMAGE_LIBRARY}" SDL2)
add_library(sys::SDL2_image ALIAS SDL2_image)
endif()
###
if(CMAKE_SYSTEM_NAME MATCHES "^(Windows|Darwin)$")
find_package(ICU COMPONENTS "uc" "i18n" REQUIRED)
endif()
###
if(SMF_MPRIS OR NOT CMAKE_SYSTEM_NAME MATCHES "^(Windows|Darwin)$")
pkg_check_modules(glib "glib-2.0" REQUIRED IMPORTED_TARGET)
pkg_check_modules(gio "gio-2.0" REQUIRED IMPORTED_TARGET)
add_library(glib INTERFACE)
add_library(gio INTERFACE)
target_link_libraries(glib INTERFACE PkgConfig::glib)
target_link_libraries(gio INTERFACE PkgConfig::gio)
add_library(sys::glib ALIAS glib)
add_library(sys::gio ALIAS gio)
endif()
if(SMF_MPRIS AND UNIX)
pkg_check_modules(gio-unix "gio-unix-2.0" REQUIRED IMPORTED_TARGET)
add_library(gio-unix INTERFACE)
target_link_libraries(gio-unix INTERFACE PkgConfig::gio-unix)
add_library(sys::gio-unix ALIAS gio-unix)
endif()
if(SMF_MPRIS)
if(glib_VERSION VERSION_LESS "2.66")
set(HAVE_GLIB_GURI FALSE)
else()
set(HAVE_GLIB_GURI TRUE)
endif()
if(NOT HAVE_GLIB_GURI)
pkg_check_modules(apr-util "apr-util-1" REQUIRED IMPORTED_TARGET)
pkg_check_modules(apr "apr-1" REQUIRED IMPORTED_TARGET)
add_library(apr-util INTERFACE)
add_library(apr INTERFACE)
target_link_libraries(apr-util INTERFACE PkgConfig::apr-util)
target_link_libraries(apr INTERFACE PkgConfig::apr)
add_library(sys::apr-util ALIAS apr-util)
add_library(sys::apr ALIAS apr)
endif()
endif()
###
add_library(uv INTERFACE)
if(PKG_CONFIG_FOUND)
pkg_check_modules(libuv "libuv" REQUIRED IMPORTED_TARGET)
target_link_libraries(uv INTERFACE PkgConfig::libuv)
else()
find_library(UV_LIBRARY "uv")
if(NOT UV_LIBRARY)
message(FATAL_ERROR "Cannot find library uv")
endif()
target_link_libraries(uv INTERFACE "${UV_LIBRARY}")
endif()
add_library(sys::uv ALIAS uv)
###
add_library(iconv INTERFACE)
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
find_library(ICONV_LIBRARY "iconv")
if(NOT ICONV_LIBRARY)
message(FATAL_ERROR "Cannot find library iconv")
endif()
target_link_libraries(iconv INTERFACE "${ICONV_LIBRARY}")
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
target_compile_definitions(iconv INTERFACE "WINICONV_CONST=")
endif()
add_library(sys::iconv ALIAS iconv)
###
if(CMAKE_SYSTEM_NAME STREQUAL "Haiku")
find_library(MEDIAKIT_LIBRARY "media")
add_library(mediakit INTERFACE)
target_link_libraries(mediakit INTERFACE "${MEDIAKIT_LIBRARY}")
add_library(sys::mediakit ALIAS mediakit)
endif()
###
find_package(Threads REQUIRED)
###
add_library(fluidsynth STATIC EXCLUDE_FROM_ALL
"thirdparty/fluidlite/src/fluid_chan.c"
"thirdparty/fluidlite/src/fluid_chorus.c"
"thirdparty/fluidlite/src/fluid_conv.c"
"thirdparty/fluidlite/src/fluid_defsfont.c"
"thirdparty/fluidlite/src/fluid_dsp_float.c"
"thirdparty/fluidlite/src/fluid_gen.c"
"thirdparty/fluidlite/src/fluid_hash.c"
"thirdparty/fluidlite/src/fluid_init.c"
"thirdparty/fluidlite/src/fluid_list.c"
"thirdparty/fluidlite/src/fluid_mod.c"
"thirdparty/fluidlite/src/fluid_ramsfont.c"
"thirdparty/fluidlite/src/fluid_rev.c"
"thirdparty/fluidlite/src/fluid_settings.c"
"thirdparty/fluidlite/src/fluid_synth.c"
"thirdparty/fluidlite/src/fluid_sys.c"
"thirdparty/fluidlite/src/fluid_tuning.c"
"thirdparty/fluidlite/src/fluid_voice.c")
target_include_directories(fluidsynth PUBLIC "thirdparty/fluidlite/include")
target_include_directories(fluidsynth PRIVATE "thirdparty/fluidlite/src")
add_library(vendor::fluidsynth ALIAS fluidsynth)
###
if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libADLMIDI")
add_library(adlmidi STATIC EXCLUDE_FROM_ALL
"thirdparty/libADLMIDI/src/adlmidi.cpp"
"thirdparty/libADLMIDI/src/adlmidi_load.cpp"
"thirdparty/libADLMIDI/src/adlmidi_midiplay.cpp"
"thirdparty/libADLMIDI/src/adlmidi_opl3.cpp"
"thirdparty/libADLMIDI/src/adlmidi_private.cpp"
"thirdparty/libADLMIDI/src/adlmidi_sequencer.cpp"
"thirdparty/libADLMIDI/src/inst_db.cpp"
"thirdparty/libADLMIDI/src/chips/dosbox_opl3.cpp"
"thirdparty/libADLMIDI/src/chips/java_opl3.cpp"
"thirdparty/libADLMIDI/src/chips/nuked_opl3.cpp"
"thirdparty/libADLMIDI/src/chips/nuked_opl3_v174.cpp"
"thirdparty/libADLMIDI/src/chips/opal_opl3.cpp"
"thirdparty/libADLMIDI/src/chips/dosbox/dbopl.cpp"
"thirdparty/libADLMIDI/src/chips/nuked/nukedopl3.c"
"thirdparty/libADLMIDI/src/chips/nuked/nukedopl3_174.c"
"thirdparty/libADLMIDI/src/wopl/wopl_file.c")
target_compile_definitions(adlmidi PRIVATE "ADLMIDI_DISABLE_MIDI_SEQUENCER" "ADLMIDI_DISABLE_CPP_EXTRAS")
target_include_directories(adlmidi PRIVATE "thirdparty/libADLMIDI/src")
target_include_directories(adlmidi PUBLIC "thirdparty/libADLMIDI/include")
add_library(vendor::adlmidi ALIAS adlmidi)
endif()
###
if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libOPNMIDI")
add_library(opnmidi STATIC EXCLUDE_FROM_ALL
"thirdparty/libOPNMIDI/src/opnmidi.cpp"
"thirdparty/libOPNMIDI/src/opnmidi_load.cpp"
"thirdparty/libOPNMIDI/src/opnmidi_midiplay.cpp"
"thirdparty/libOPNMIDI/src/opnmidi_opn2.cpp"
"thirdparty/libOPNMIDI/src/opnmidi_private.cpp"
"thirdparty/libOPNMIDI/src/opnmidi_sequencer.cpp"
"thirdparty/libOPNMIDI/src/chips/gens_opn2.cpp"
"thirdparty/libOPNMIDI/src/chips/gx_opn2.cpp"
"thirdparty/libOPNMIDI/src/chips/mame_opn2.cpp"
"thirdparty/libOPNMIDI/src/chips/mame_opna.cpp"
"thirdparty/libOPNMIDI/src/chips/nuked_opn2.cpp"
"thirdparty/libOPNMIDI/src/chips/pmdwin_opna.cpp"
"thirdparty/libOPNMIDI/src/chips/gens/Ym2612.cpp"
"thirdparty/libOPNMIDI/src/chips/gx/gx_ym2612.c"
"thirdparty/libOPNMIDI/src/chips/mame/mame_ym2612fm.c"
"thirdparty/libOPNMIDI/src/chips/mamefm/emu2149.c"
"thirdparty/libOPNMIDI/src/chips/mamefm/fm.cpp"
"thirdparty/libOPNMIDI/src/chips/mamefm/resampler.cpp"
"thirdparty/libOPNMIDI/src/chips/mamefm/ymdeltat.cpp"
"thirdparty/libOPNMIDI/src/chips/np2/fmgen_file.cpp"
"thirdparty/libOPNMIDI/src/chips/np2/fmgen_fmgen.cpp"
"thirdparty/libOPNMIDI/src/chips/np2/fmgen_fmtimer.cpp"
"thirdparty/libOPNMIDI/src/chips/np2/fmgen_opna.cpp"
"thirdparty/libOPNMIDI/src/chips/np2/fmgen_psg.cpp"
"thirdparty/libOPNMIDI/src/chips/np2_opna.cpp"
"thirdparty/libOPNMIDI/src/chips/nuked/ym3438.c"
"thirdparty/libOPNMIDI/src/chips/pmdwin/opna.c"
"thirdparty/libOPNMIDI/src/chips/pmdwin/psg.c"
"thirdparty/libOPNMIDI/src/chips/pmdwin/rhythmdata.c"
"thirdparty/libOPNMIDI/src/chips/vgm_file_dumper.cpp"
"thirdparty/libOPNMIDI/src/wopn/wopn_file.c")
target_compile_definitions(opnmidi PRIVATE "OPNMIDI_DISABLE_MIDI_SEQUENCER" "OPNMIDI_DISABLE_CPP_EXTRAS")
target_include_directories(opnmidi PRIVATE "thirdparty/libOPNMIDI/src")
target_include_directories(opnmidi PUBLIC "thirdparty/libOPNMIDI/include")
add_library(vendor::opnmidi ALIAS opnmidi)
endif()
###
if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/scc")
add_library(scc STATIC EXCLUDE_FROM_ALL
"thirdparty/scc/emidi_alpha/CEnvelope.cpp"
"thirdparty/scc/emidi_alpha/CMIDIMessage.cpp"
"thirdparty/scc/emidi_alpha/CMIDIModule.cpp"
"thirdparty/scc/emidi_alpha/COpllDevice.cpp"
"thirdparty/scc/emidi_alpha/CPSGDrum.cpp"
"thirdparty/scc/emidi_alpha/CSccDevice.cpp"
"thirdparty/scc/emidi_alpha/device/emu2149.c"
"thirdparty/scc/emidi_alpha/device/emu2212.c"
"thirdparty/scc/emidi_alpha/device/emu2413.c")
target_include_directories(scc PUBLIC "thirdparty/scc")
add_library(vendor::scc ALIAS scc)
endif()
###
if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/munt")
add_library(mt32emu STATIC EXCLUDE_FROM_ALL
"thirdparty/munt/mt32emu/src/Analog.cpp"
"thirdparty/munt/mt32emu/src/BReverbModel.cpp"
"thirdparty/munt/mt32emu/src/File.cpp"
"thirdparty/munt/mt32emu/src/FileStream.cpp"
"thirdparty/munt/mt32emu/src/LA32FloatWaveGenerator.cpp"
"thirdparty/munt/mt32emu/src/LA32Ramp.cpp"
"thirdparty/munt/mt32emu/src/LA32WaveGenerator.cpp"
"thirdparty/munt/mt32emu/src/MidiStreamParser.cpp"
"thirdparty/munt/mt32emu/src/Part.cpp"
"thirdparty/munt/mt32emu/src/Partial.cpp"
"thirdparty/munt/mt32emu/src/PartialManager.cpp"
"thirdparty/munt/mt32emu/src/Poly.cpp"
"thirdparty/munt/mt32emu/src/ROMInfo.cpp"
"thirdparty/munt/mt32emu/src/SampleRateConverter.cpp"
"thirdparty/munt/mt32emu/src/Synth.cpp"
"thirdparty/munt/mt32emu/src/Tables.cpp"
"thirdparty/munt/mt32emu/src/TVA.cpp"
"thirdparty/munt/mt32emu/src/TVF.cpp"
"thirdparty/munt/mt32emu/src/TVP.cpp"
"thirdparty/munt/mt32emu/src/c_interface/c_interface.cpp"
"thirdparty/munt/mt32emu/src/sha1/sha1.cpp"
"thirdparty/munt/mt32emu/src/srchelper/InternalResampler.cpp"
"thirdparty/munt/mt32emu/src/srchelper/srctools/src/FIRResampler.cpp"
"thirdparty/munt/mt32emu/src/srchelper/srctools/src/IIR2xResampler.cpp"
"thirdparty/munt/mt32emu/src/srchelper/srctools/src/LinearResampler.cpp"
"thirdparty/munt/mt32emu/src/srchelper/srctools/src/ResamplerModel.cpp"
"thirdparty/munt/mt32emu/src/srchelper/srctools/src/SincResampler.cpp")
target_compile_definitions(mt32emu PUBLIC
"MT32EMU_WITH_INTERNAL_RESAMPLER"
"MT32EMU_EXPORTS_TYPE=1"
"MT32EMU_VERSION=\"0.0.0\""
"MT32EMU_VERSION_MAJOR=0"
"MT32EMU_VERSION_MINOR=0"
"MT32EMU_VERSION_PATCH=0")
target_include_directories(mt32emu PUBLIC "thirdparty/munt/mt32emu/src")
#
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/mt32emu_gen")
if(NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/mt32emu_gen/config.h")
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/mt32emu_gen/config.h" "")
endif()
target_include_directories(mt32emu PUBLIC "${CMAKE_CURRENT_BINARY_DIR}/mt32emu_gen")
#
add_library(vendor::mt32emu ALIAS mt32emu)
endif()
###
if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/timidityplus")
add_library(timiditypp STATIC EXCLUDE_FROM_ALL
"thirdparty/timidityplus/common.cpp"
"thirdparty/timidityplus/configfile.cpp"
"thirdparty/timidityplus/effect.cpp"
"thirdparty/timidityplus/fft4g.cpp"
"thirdparty/timidityplus/filter.cpp"
"thirdparty/timidityplus/freq.cpp"
"thirdparty/timidityplus/instrum.cpp"
"thirdparty/timidityplus/mblock.cpp"
"thirdparty/timidityplus/mix.cpp"
"thirdparty/timidityplus/playmidi.cpp"
"thirdparty/timidityplus/quantity.cpp"
"thirdparty/timidityplus/readmidic.cpp"
"thirdparty/timidityplus/recache.cpp"
"thirdparty/timidityplus/resample.cpp"
"thirdparty/timidityplus/reverb.cpp"
"thirdparty/timidityplus/sbkconv.cpp"
"thirdparty/timidityplus/sffile.cpp"
"thirdparty/timidityplus/sfitem.cpp"
"thirdparty/timidityplus/smplfile.cpp"
"thirdparty/timidityplus/sndfont.cpp"
"thirdparty/timidityplus/tables.cpp"
"thirdparty/timidityplus/zmusic/critsec.cpp")
target_include_directories(timiditypp PUBLIC "thirdparty/timidityplus")
target_include_directories(timiditypp PRIVATE "thirdparty/timidityplus/timiditypp")
target_link_libraries(timiditypp PRIVATE Threads::Threads)
add_library(vendor::timiditypp ALIAS timiditypp)
endif()
###
if(SMF_MPRIS)
add_library(mpris STATIC EXCLUDE_FROM_ALL
"thirdparty/mpris/src/org.mpris.MediaPlayer2.c"
"thirdparty/mpris/src/org.mpris.MediaPlayer2.Player.c"
"thirdparty/mpris/src/org.mpris.MediaPlayer2.Playlists.c"
"thirdparty/mpris/src/org.mpris.MediaPlayer2.TrackList.c")
target_include_directories(mpris PUBLIC "thirdparty/mpris/src")
target_link_libraries(mpris PUBLIC sys::gio sys::glib)
if(SMF_MPRIS AND UNIX)
target_link_libraries(mpris PRIVATE sys::gio-unix)
endif()
add_library(vendor::mpris ALIAS mpris)
endif()