remymuller / juce-cmake

CMake find module for the JUCE library
MIT License
30 stars 7 forks source link

Allow multiple uses of find_package(JUCE) #1

Closed remymuller closed 7 years ago

remymuller commented 7 years ago

Allow multiple uses of find_package(JUCE) with different configurations in order to allow a single project to build multiple JUCE targets, each having its own modules and flags.

proposal: if JUCE_USE_UNIQUE_TARGET_NAMES is set use string(RANDOM target_suffix) to make target names unique

also add JUCE_TARGET_NAME_PREFIX for explicit namespacing from client code