gboisse / gfx

A minimalist and easy to use graphics API.
MIT License
502 stars 36 forks source link

Make scene and UI dependencies optional #79

Closed maoliver-amd closed 1 year ago

maoliver-amd commented 1 year ago

Adds 2 cmake configuration options GFX_ENABLE_GUI and GFX_ENABLE_SCENE which default to disabled. The first option enables imgui support while the second adds all the dependencies needed for gfx_scene (glm, stb, cgltf, tinyobjloader, tinyexr, ktx). CMake uses FetchContent to optionally pull in these dependencies replacing the old usage of submodules. This way if an option is not selected the dependencies are not checked out which significantly reduces repository checkout time and size.