Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.42 KB

File metadata and controls

44 lines (29 loc) · 1.42 KB

Dear ImGui

This is a version of Dear ImGui that can be built as a static or shared library using CMake.

Build

Example build using CMake and Ninja:

cmake -S . -B build -G Ninja \
    -DIMGUI_BACKEND=bgfx,sdl3 \
    -DCMAKE_BUILD_TYPE=Release \
    -DIMGUI_BUILD_SHARED=OFF \
    -DCMAKE_INSTALL_PREFIX=C:/libs/imgui

cmake --build build

CMake Options

  • IMGUI_BACKEND – Select the backend(s) to use. Currently supports sdl3 and bgfx.

  • IMGUI_BUILD_SHARED – ON to build as a shared library, OFF for static library

Backend Dependencies

Backends require their respective libraries:

  • BGFX: Build manually using bgfx.cmake
  • SDL3: Build manually from SDL

These libraries are not included in this repository; build them separately as needed.

Example Project

A sample project using this library is available here:
sdl3-bgfx-imgui-examples