No, this isn’t directly possible. I’d recommend calling juce_add_plugin twice, once for your AU target and again for the VST/VST3/AAX targets. You could also put all the common stuff in a function to reduce duplication.
Hi!
If I call juce_add_plugin twice. once for all except AU and then once again with only AU.
I get the cmake error:
add_library cannot create target “PluginName” because another
target with the same name already exists. The existing target is a static
library created in source directory