- bgfx, bx, bimg (system libraries)
- glfw (submodule)
- tinyobjloader (submodule)
git clone --recurse-submodules -j4 https://github.com/VirtualGeo/proto-bgfx.git
mkdir build
cd build
cmake ..
make -j4src/proto-bgfxgit clone https://github.com/widberg/bgfx.cmake.git
cd bgfx.cmake
rm -rf bgfx bimg bx
git clone git://github.com/bkaradzic/bx.git
git clone git://github.com/bkaradzic/bimg.git
git clone git://github.com/bkaradzic/bgfx.gitset(CMAKE_DEBUG_POSTFIX "d")
set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/bgfx-install)cmake --build <BGFX_CMAKE_BUILD_DEBUG_DIR> --target install
cmake --build <BGFX_CMAKE_BUILD_RELEASE_DIR> --target installBuild -> Install bgfx (Release and Debug project)
You must set the environment variable BGFX_ROOT as the path of bgfx-install on your system
Project -> CMake Settings
Projects -> Add Directory
in .vscode/settings.json of proto-bgfx project add these lines
"cmake.configureSettings": {
"BGFX_ROOT": "D:/<PATH_IN_YOUR_SYSTEM>/bgfx-install",
},