diff --git a/cmake/Juce.cmake b/cmake/Juce.cmake new file mode 100644 index 0000000..e639aca --- /dev/null +++ b/cmake/Juce.cmake @@ -0,0 +1,23 @@ +#[[ + + Adding this include will add juce to your project + +]] + +include(FetchContent) + +#Adds all the module sources so they appear correctly in the IDE +set_property(GLOBAL PROPERTY USE_FOLDERS YES) +option(JUCE_ENABLE_MODULE_SOURCE_GROUPS "Enable Module Source Groups" ON) + +#set any of these to "ON" if you want to build one of the juce examples +#or extras (Projucer/AudioPluginHost, etc): +option(JUCE_BUILD_EXTRAS "Build JUCE Extras" OFF) +option(JUCE_BUILD_EXAMPLES "Build JUCE Examples" OFF) + +FetchContent_Declare(juce + GIT_REPOSITORY https://github.com/juce-framework/JUCE.git + GIT_TAG 7.0.12 + GIT_SHALLOW ON) + +FetchContent_MakeAvailable(juce)