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.
pull/243/head
Olivier FAURE 2019-03-13 15:56:53 +01:00 committed by GitHub
parent 422140dd61
commit a76df5c7d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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 $ 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: Right now our directory structure should look like this:
``` ```
SimpleLibrary/ SimpleLibrary/