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

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

# the real processor and editor fed synthetic signals with the transport playing; renders the window for screenshot.png
et_add_view_harness(Punch test_punch_view tests/render_view.cpp)
