-
Download CMAKE https://cmake.org/download/
-
Copy over the default CMakeLists.txt from https://github.com/juce-framework/JUCE/tree/master/examples/CMake/AudioPlugin
-
Replace
AudioPluginExamplewith the name of your project. -
Set JUCE path. Uncomment the
add_subdirectoryexample. Let's add JUCE as a submodule. I'm assuming we want the develop branch.
git submodule add --branch develop --force -- https://github.com/juce-framework/JUCE/ JUCE
Let's commit those changes.
git commit .gitmodules JUCE -m 'Adding JUCE as a submodule'
-
Set the correct flags for your plugin under
juce_add_plugin. Check out the API https://github.com/juce-framework/JUCE/blob/master/docs/CMake%20API.md