CMake-JuceHeader.h

New to CMake and relatively new to linux C++.

When I include the CMakeLists.txt “juce_generate_juce_header” directive it includes the following includes:

#include <juce_gui_extra/juce_gui_extra.h>
#include <juce_gui_basics/juce_gui_basics.h>
#include <juce_graphics/juce_graphics.h>
#include <juce_events/juce_events.h>
#include <juce_core/juce_core.h>
#include <juce_data_structures/juce_data_structures.h>

How do I get it to add the rest of the modules such as juce_osc/juce_osc.h> ?

Thanks in advance,

Ken

For your particular plugin add them to the target_link_libraries. For instance if your plugin is called “my-cool-plug” you would have, after your juce_add_plugin, something like

target_link_libraries(my-cool-plug PRIVATE 
        juce::juce_audio_utils
        juce::juce_osc
)
1 Like

Thank you!

That worked.

Ken

1 Like