# Guard keeps the repository configuring if this folder is ever emptied.
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/Source/PluginProcessor.cpp)
juce_add_plugin(MonoBelow
    VERSION                     1.0.1
    PRODUCT_NAME                "Mono Below"
    COMPANY_NAME                "e-thomsen"
    BUNDLE_ID                   "dk.e-thomsen.monobelow"
    PLUGIN_MANUFACTURER_CODE    Etho
    PLUGIN_CODE                 Mnob
    FORMATS                     ${ET_FORMATS}
    AU_MAIN_TYPE                kAudioUnitType_Effect
    IS_SYNTH FALSE NEEDS_MIDI_INPUT FALSE NEEDS_MIDI_OUTPUT FALSE IS_MIDI_EFFECT FALSE
    EDITOR_WANTS_KEYBOARD_FOCUS FALSE
    COPY_PLUGIN_AFTER_BUILD     TRUE)
target_sources(MonoBelow PRIVATE Source/PluginProcessor.cpp Source/PluginEditor.cpp)
et_configure_plugin(MonoBelow)
endif()

if(ET_BUILD_TESTS AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/tests/test_monobelow.cpp)
    add_executable(test_monobelow tests/test_monobelow.cpp)
    target_include_directories(test_monobelow PRIVATE Source/DSP ${CMAKE_SOURCE_DIR}/Common/DSP)
endif()
