소스 검색

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.
Olivier FAURE 6 년 전
부모
커밋
a76df5c7d1
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      README.md

+ 6 - 0
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/