aboutsummaryrefslogtreecommitdiff
path: root/utils/midiplay/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'utils/midiplay/CMakeLists.txt')
-rw-r--r--utils/midiplay/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/midiplay/CMakeLists.txt b/utils/midiplay/CMakeLists.txt
index 98f888a..52d0128 100644
--- a/utils/midiplay/CMakeLists.txt
+++ b/utils/midiplay/CMakeLists.txt
@@ -24,6 +24,8 @@ if(WIN32 AND NOT USE_SDL2_AUDIO)
)
endif()
+option(DEBUG_SONG_SWITCHING "Enable song switching by left and right keys (Linux only)" OFF)
+
add_executable(adlmidiplay ${ADLMIDI_PLAY_SRC})
if(USE_SDL2_AUDIO)
@@ -34,6 +36,10 @@ endif()
set_nopie(adlmidiplay)
+if(DEBUG_SONG_SWITCHING)
+ target_compile_definitions(adlmidiplay PRIVATE DEBUG_SONG_SWITCHING)
+endif()
+
if(MIDIPLAY_WAVE_ONLY)
target_compile_definitions(adlmidiplay PUBLIC OUTPUT_WAVE_ONLY)
message("Demo tool will only output WAVE file, no playing support.")