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

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

# the real processor and editor: the singer learned from the side chain, the double played; renders the window for screenshot.png
et_add_view_harness(Wings test_wings_view tests/render_view.cpp)
