widberg / Bgfx.cmake
Licence: other
Independently maintained CMake build scripts for bgfx. Released under public domain.
Projects that are alternatives of or similar to Bgfx.cmake
computer-vision-dojoThis is a repository to learn and get more computer vision skills, make robotics projects integrating the computer vision as a perception tool and create a lot of awesome advanced controllers for the robots of the future.
Stars: ✭ 15 (-94.38%)
Mutual labels: cmake
BunnyLODCross platform GLFW based port of Stan Melax's BunnyLOD Easy Mesh Simplification
Stars: ✭ 60 (-77.53%)
Mutual labels: cmake
Sdl2 Cmake ScriptsCMake scripts for finding SDL2 headers and libraries on multiple platforms
Stars: ✭ 260 (-2.62%)
Mutual labels: cmake
FindICU.cmake[CMake] [BSD-2] CMake module to find ICU
Stars: ✭ 28 (-89.51%)
Mutual labels: cmake
cuda-cmake-gtest-gbench-starterA cross-platform CUDA/C++14 starter project with google test and google benchmark support.
Stars: ✭ 24 (-91.01%)
Mutual labels: cmake
Vanilla RtbReal Time Bidding (RTB) - Demand Side Platform framework
Stars: ✭ 257 (-3.75%)
Mutual labels: cmake
esmLightweight communicating state machine framework for embedded systems
Stars: ✭ 21 (-92.13%)
Mutual labels: cmake
ShogunShōgun
Stars: ✭ 2,859 (+970.79%)
Mutual labels: cmake
cmake-modulesCMake module collection
Stars: ✭ 30 (-88.76%)
Mutual labels: cmake
Learningdirectx12This repository is intended to be used as a code repository for learning DirectX 12.
Stars: ✭ 256 (-4.12%)
Mutual labels: cmake
c-templateBoilerplate to set up a c project, include CuTest unit testing, cmake build setup
Stars: ✭ 69 (-74.16%)
Mutual labels: cmake
CLUSEK-RTVulkan based C++ ray-tracing game engine.
Stars: ✭ 24 (-91.01%)
Mutual labels: cmake
Google Test ExamplesShort example how to use Google Test with CMake project
Stars: ✭ 258 (-3.37%)
Mutual labels: cmake
cmake-maven-projectProject to enable using CMake from a Maven build.
Stars: ✭ 57 (-78.65%)
Mutual labels: cmake
LibspngSimple, modern libpng alternative
Stars: ✭ 265 (-0.75%)
Mutual labels: cmake
catch cmake coverageIntegration of Catch, CMake and CMake CodeCoverage module and basic examples in C++.
Stars: ✭ 30 (-88.76%)
Mutual labels: cmake
BoomerangBoomerang Decompiler - Fighting the code-rot :)
Stars: ✭ 265 (-0.75%)
Mutual labels: cmake
BitmagicBitMagic Library
Stars: ✭ 263 (-1.5%)
Mutual labels: cmake
CppprojecttemplateBasic, but working, C++ project using CMake, boost and Doxygen
Stars: ✭ 259 (-3%)
Mutual labels: cmake
bgfx.cmake
This repo contains a bunch of cmake files that can be used to build bgfx with CMake.
Building
git clone https://github.com/widberg/bgfx.cmake.git
cd bgfx.cmake
git submodule init
git submodule update
mkdir build
cd build
cmake ..
If downloading via zip (instead of using git submodules) manually download bx, bimg and bgfx and copy them into the root directory, or locate them via BX_DIR, BIMG_DIR and BGFX_DIR CMake variables.
How To Use
This project is setup to be included a few different ways. To include bgfx source code in your project simply use add_subdirectory to include this project. To build bgfx binaries build the INSTALL target (or "make install"). The installed files will be in the directory specified by CMAKE_INSTALL_PREFIX which I recommend you set to "./install" so it will export to your build directory. Note you may want to build install on both Release and Debug configurations.
Features
- No outside dependencies besides bx, bimg, bgfx, and CMake.
- Tested on Visual Studio 2015, Xcode, gcc 5.4, clang 3.8.
- Compiles bgfx, tools & examples.
- Detects shader modifications and automatically rebuilds them for all examples.
Does this work with latest bx/bgfx/bimg?
Probably! This project needs to be updated if a dependency is added or the bgfx build system changes. The bgfx repository is very active but these types of changes are rare. New examples have to be added manually as well, but not doing so will merely result in that example not showing up and won't break anything else. If pulling latest causes issues, be sure to manually reconfigure CMake as the glob patterns may need to be refreshed (the use of glob patterns in CMake is generally discouraged but in this project it helps to ensure upwards compatibilty with newer bgfx updates).
Todo
- Support Native Client.
- Support Windows Phone.
- Fix iOS builds. #85
- More configuration. #12
- Add varying.def.sc files as shader dependencies.
- Combined examples.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at
[email protected].