mirror of
https://github.com/bkaradzic/bgfx.cmake.git
synced 2026-02-17 21:12:35 +01:00
94c5d2b9e85add3412169a93bd6f40a5f84c21e4
bgfx.cmake
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 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.
- Tested on Visual Studio 2015 and Xcode.
- Compiles bgfx, tools & examples.
- Detects shader modifications and automatically rebuilds them.
- Uses CMake interface libraries (linking against bgfx is one line of cmake code via target_link_libraries).
Description
Languages
CMake
100%