aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVitaly Novichkov <Wohlstand@users.noreply.github.com>2019-02-23 21:07:40 +0300
committerGitHub <noreply@github.com>2019-02-23 21:07:40 +0300
commitb51a2a538b7b539ba814df343d4c346ab6c98dbf (patch)
tree7f0db4a00ae254318ac6c7579974a17c13557fd6 /CMakeLists.txt
parent9e01b5b7c1591ac0424dd708ca009a5d4fee1de4 (diff)
parent80aa7e0bcb4d65dd8ed12b1d6c1ff5ad18007a6e (diff)
downloadlibADLMIDI-b51a2a538b7b539ba814df343d4c346ab6c98dbf.tar.gz
libADLMIDI-b51a2a538b7b539ba814df343d4c346ab6c98dbf.tar.bz2
libADLMIDI-b51a2a538b7b539ba814df343d4c346ab6c98dbf.zip
Merge pull request #205 from jpcima/opal
support the Opal emulator
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6ccdc20..03960e0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -108,6 +108,7 @@ option(WITH_MUS_SUPPORT "Build with support for DMX MUS files" ON)
option(WITH_XMI_SUPPORT "Build with support for AIL XMI files" ON)
option(USE_DOSBOX_EMULATOR "Use DosBox 0.74 OPL3 emulator (semi-accurate, suggested for slow or mobile platforms)" ON)
option(USE_NUKED_EMULATOR "Use Nuked OPL3 emulator (most accurate, powerful)" ON)
+option(USE_OPAL_EMULATOR "Use Opal emulator" OFF)
option(WITH_GENADLDATA "Build and run full rebuild of embedded banks cache" OFF)
option(WITH_GENADLDATA_COMMENTS "Enable comments in generated ADLDATA cache file" OFF)
@@ -158,6 +159,15 @@ function(handle_options targetLib)
target_compile_definitions(${targetLib} PUBLIC ADLMIDI_DISABLE_NUKED_EMULATOR)
endif()
+ if(USE_OPAL_EMULATOR)
+ set(HAS_EMULATOR TRUE)
+ target_sources(${targetLib} PRIVATE
+ ${libADLMIDI_SOURCE_DIR}/src/chips/opal_opl3.cpp
+ )
+ else()
+ target_compile_definitions(${targetLib} PUBLIC ADLMIDI_DISABLE_OPAL_EMULATOR)
+ endif()
+
if(NOT HAS_EMULATOR)
message(FATAL_ERROR "No emulators enabled! You must enable at least one emulator!")
endif()