diff --git a/.gitignore b/.gitignore index 8e62b21..e268f7e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,2 @@ -build/ -bgfx/ -bx/ -*.swp +build/ +*.swp diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a34845c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "bgfx"] + path = bgfx + url = git@github.com:bkaradzic/bgfx.git +[submodule "bx"] + path = bx + url = git@github.com:bkaradzic/bx.git diff --git a/bgfx b/bgfx new file mode 160000 index 0000000..0acb371 --- /dev/null +++ b/bgfx @@ -0,0 +1 @@ +Subproject commit 0acb371d61a6a7650af338d1a0f6c852b4ef9f11 diff --git a/bx b/bx new file mode 160000 index 0000000..e431bb5 --- /dev/null +++ b/bx @@ -0,0 +1 @@ +Subproject commit e431bb5e20e9e76119e72168d8aa24708507a6cb diff --git a/readme.md b/readme.md index 008402b..94dc73e 100644 --- a/readme.md +++ b/readme.md @@ -1,16 +1,18 @@ bgfx.cmake =================== -This repo contains a bunch of cmake files that can be used to build bgfx with CMake. To get started, pull down the repo and run these commands from within the root directory of the repo: +This repo contains a bunch of cmake files that can be used to build bgfx with CMake. To get started, clone the repo and run these commands from within the root directory of the repo: ``` -git clone git@github.com:bkaradzic/bx.git -git clone git@github.com:bkaradzic/bgfx.git +git submodule init +git submodule update mkdir build cd build cmake .. ``` +If downloading via zip, instead of using git submodule manually download bx and bgfx and copy them into the root directory, or locate them via BX_DIR and BGFX_DIR CMake variables. + Features ------------- * No outside dependencies besides bx, bgfx, and CMake.