From a76df5c7d1a1bd1077acb734998038d9929f7bd3 Mon Sep 17 00:00:00 2001 From: Olivier FAURE Date: Wed, 13 Mar 2019 15:56:53 +0100 Subject: [PATCH] Add instructions to use submodules Git submodules are a little tricky to use, but are the default way to go when adding a github project as a dependency in C++. Add instructions on how to add godot-cpp as a dependency when working from an existing repository. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index a1dec84e..f9d5d2e9 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,12 @@ Note that if you wish to use a specific branch, add the -b option to the clone c $ git clone --recursive https://github.com/GodotNativeTools/godot-cpp -b 3.0 ``` +If your project is an existing repository, use git submodule instead: +``` +$ git submodule add https://github.com/GodotNativeTools/godot-cpp +$ git submodule update --init --recursive +``` + Right now our directory structure should look like this: ``` SimpleLibrary/