2019-09-23 07:26:37 +00:00
|
|
|
cmake_minimum_required( VERSION 2.8.7 )
|
|
|
|
|
|
|
|
make_release_only()
|
2019-10-05 11:41:21 +00:00
|
|
|
use_fast_math()
|
2019-09-23 07:26:37 +00:00
|
|
|
|
|
|
|
# we play with out own sequencer
|
|
|
|
add_definitions(-DOPNMIDI_DISABLE_MIDI_SEQUENCER)
|
|
|
|
|
|
|
|
# Disable OPNMIDI's experimental yet emulator (using of it has some issues and missing notes in playback)
|
|
|
|
add_definitions(-DOPNMIDI_DISABLE_GX_EMULATOR)
|
|
|
|
|
|
|
|
add_library( opn STATIC
|
2020-10-15 10:44:34 +00:00
|
|
|
chips/gens_opn2.cpp
|
|
|
|
chips/gens/Ym2612_Emu.cpp
|
|
|
|
chips/gx_opn2.cpp
|
|
|
|
chips/mamefm/fm.cpp
|
|
|
|
chips/mamefm/resampler.cpp
|
|
|
|
chips/mamefm/ymdeltat.cpp
|
|
|
|
chips/mame_opn2.cpp
|
|
|
|
chips/mame_opna.cpp
|
|
|
|
chips/np2/fmgen_file.cpp
|
2020-09-28 18:23:55 +00:00
|
|
|
chips/np2/fmgen_fmgen.cpp
|
|
|
|
chips/np2/fmgen_fmtimer.cpp
|
2020-10-15 10:44:34 +00:00
|
|
|
chips/np2/fmgen_opna.cpp
|
2020-09-28 18:23:55 +00:00
|
|
|
chips/np2/fmgen_psg.cpp
|
|
|
|
chips/np2_opna.cpp
|
|
|
|
chips/nuked_opn2.cpp
|
|
|
|
chips/pmdwin_opna.cpp
|
2020-10-15 10:44:34 +00:00
|
|
|
opnmidi.cpp
|
|
|
|
opnmidi_load.cpp
|
|
|
|
opnmidi_midiplay.cpp
|
|
|
|
opnmidi_opn2.cpp
|
|
|
|
opnmidi_private.cpp
|
2020-09-28 18:23:55 +00:00
|
|
|
chips/gx/gx_ym2612.c
|
2020-10-15 10:44:34 +00:00
|
|
|
chips/mamefm/emu2149.c
|
|
|
|
chips/mame/mame_ym2612fm.c
|
|
|
|
chips/nuked/ym3438.c
|
2020-09-28 18:23:55 +00:00
|
|
|
chips/pmdwin/opna.c
|
|
|
|
chips/pmdwin/psg.c
|
|
|
|
chips/pmdwin/rhythmdata.c
|
|
|
|
wopn/wopn_file.c
|
|
|
|
)
|
2019-09-23 07:26:37 +00:00
|
|
|
target_link_libraries( opn )
|