From 4491bc30223cecf8ff495de943510863b71a7a81 Mon Sep 17 00:00:00 2001 From: Sudara Date: Thu, 6 Jun 2024 19:39:38 +0200 Subject: [PATCH] Add detail to git install instructions in README (#151) When setting up I didn't realize I needed to recursively init the submodule. Not doing so results in an error like so: ``` CMake Error at modules/clap-juce-extensions/CMakeLists.txt:48 (add_subdirectory): The source directory /Users/sudara/projects/Meter/modules/clap-juce-extensions/clap-libs/clap does not contain a CMakeLists.txt file. ``` I figured adding that detail might help someone else. Yay clap! --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e2e57fe..642e79d 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,13 @@ somewhere in your dev environment, setting a few CMake variables, and adding a c The instructions are as follows: 1. Add `https://github.com/free-audio/clap-juce-extensions.git` as a submodule of your project, or otherwise make the - source available to your cmake (CPM, side by side check out in CI, etc...). + source available to your cmake (CPM, side by side check out in CI, etc...). For example: + +```git +git submodule add -b main https://github.com/free-audio/clap-juce-extensions.git libs/clap-juce-extensions +git submodule update --init --recursive # important, this will grab clap and clap-helpers +``` + 2. Load the `clap-juce-extension` in your CMake after you have loaded JUCE. For instance, you could do ```cmake