aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2020-09-28 19:35:24 +0300
committerWohlstand <admin@wohlnet.ru>2020-09-28 19:35:24 +0300
commit455ac435481558c09ee1824b1e6dcc43f277527d (patch)
tree641268a2117543cd1a66ec9c4b3e3d790170f22e /CMakeLists.txt
parent595a9dc35ad1c41dac96d7fd7e3b3c7ccaac9947 (diff)
parentbaefee8dbe094a05ae89b0f9b909d19982711dc7 (diff)
downloadlibADLMIDI-455ac435481558c09ee1824b1e6dcc43f277527d.tar.gz
libADLMIDI-455ac435481558c09ee1824b1e6dcc43f277527d.tar.bz2
libADLMIDI-455ac435481558c09ee1824b1e6dcc43f277527d.zip
Merge branch 'master' of github.com:Wohlstand/libADLMIDI
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 855a3d1..a22fadf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -136,6 +136,10 @@ option(WITH_MUS2MID "Build a MUS to MIDI converter" OFF)
option(WITH_XMI2MID "Build a XMI to MIDI converter" OFF)
option(EXAMPLE_SDL2_AUDIO "Build also a simple SDL2 demo MIDI player" OFF)
+if(WIN32)
+ option(WITH_WINMMDRV "Build a WinMM MIDI driver" OFF)
+endif()
+
function(handle_options targetLib)
if(WITH_MIDI_SEQUENCER)
target_sources(${targetLib} PRIVATE ${libADLMIDI_SOURCE_DIR}/src/adlmidi_sequencer.cpp)
@@ -345,6 +349,10 @@ if(WITH_VLC_PLUGIN AND NOT ADLMIDI_DOS)
add_subdirectory(utils/vlc_codec)
endif()
+if(WIN32 AND WITH_WINMMDRV)
+ add_subdirectory(utils/winmm_drv)
+endif()
+
set(libADLMIDI_INSTALLS )
foreach(lib ADLMIDI_static ADLMIDI_shared)
if(TARGET ${lib})
@@ -422,3 +430,6 @@ message("WITH_OLD_UTILS = ${WITH_OLD_UTILS}")
message("WITH_MUS2MID = ${WITH_MUS2MID}")
message("WITH_XMI2MID = ${WITH_XMI2MID}")
message("EXAMPLE_SDL2_AUDIO = ${EXAMPLE_SDL2_AUDIO}")
+if(WIN32)
+ message("WITH_WINMMDRV = ${WITH_WINMMDRV}")
+endif()