Linking a JUCE project to a static library created in JUCE

Hi clever JUCE-ers,

Is there a way to generate a static library using JUCE that can be linked to 3rd party projects that maybe will be created in JUCE?

The problem here can be duplicated symbols as a .lib file on Windows is just a merge of several .obj files and will include the JUCE modules themself too causing duplicate symbols at the linking.

Removing the JUCE modules from the .lib file could solve the linking issue temporarily, but could cause JUCE version mismatch problems…

Also the BinaryData should be renamed in the static library project as that can’t be removed from the library for obvious reasons…

Any nice workaround idea how one can use JUCE in a static library without worrying the 3rd party project’s framework?