jucer_project_module
Add a JUCE module to the current JUCE project.
jucer_project_module(
<module_name>
PATH <modules_folder>
[ADD_SOURCE_TO_PROJECT <ON|OFF>]
[<module_config_flag> <ON|OFF>]...
)
<modules_folder>
must be the path to the folder that contains the module folder, not
the module folder itself. For instance, if you want to add the module juce_core
and
its header is located at ~/dev/JUCE/modules/juce_core/juce_core.h
, then
<modules_folder>
must be ~/dev/JUCE/modules
.
Example
From the Plugin Host example of JUCE 5.2.1:
86jucer_project_module(
87 juce_audio_processors
88 PATH "../../modules"
89 JUCE_PLUGINHOST_VST ON
90 JUCE_PLUGINHOST_VST3 ON
91 JUCE_PLUGINHOST_AU ON
92)
93
94jucer_project_module(
95 juce_audio_utils
96 PATH "../../modules"
97 JUCE_USE_CDREADER OFF
98 JUCE_USE_CDBURNER OFF
99)