Does juce_add_plugin() affect the compilation of the JUCE source code?

I have built JUCE as a static library.
I would like to know if any of the JUCE-cmake functions would have an effect on the way the JUCE source code is compiled.

When I’m consuming my static library, I am only using

juce_add_plugin()

to create my (VST3, AU…) targets

The short answer is “yes”. JUCE’s CMake support adds quite a few preprocessor definitions to the static library target, which have an effect on the way the JUCE source is compiled. For plugin targets, the symbol visibility is changed to ‘hidden’ and position-independent code is enabled.

1 Like