juce_add_plugin(Loud
    VERSION                     1.0.1
    PRODUCT_NAME                "Loud"
    COMPANY_NAME                "e-thomsen"
    BUNDLE_ID                   "dk.e-thomsen.loud"
    PLUGIN_MANUFACTURER_CODE    Etho
    PLUGIN_CODE                 Loud
    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(Loud PRIVATE Source/PluginProcessor.cpp Source/PluginEditor.cpp)
et_configure_plugin(Loud)

if(ET_BUILD_TESTS)
    add_executable(test_loud tests/test_loud.cpp)
    target_include_directories(test_loud PRIVATE Source/DSP ${CMAKE_SOURCE_DIR}/Common/DSP)
endif()

# the real processor and editor fed the synthetic mix; renders the window for screenshot.png
et_add_view_harness(Loud test_loud_view tests/render_view.cpp)
