Skip to content
Starter dear-imgui GLFW/OpenGL 3 based CMake C++ project
C C++ Other
Branch: master
Clone or download
Latest commit 04409fa Jul 4, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
fonts Added theme and fonts and CPP_SRC_DIR Jul 4, 2018
.gitignore Initial commit Jul 3, 2018
.gitmodules Initial commit Jul 3, 2018
CMakeLists.txt Added theme and fonts and CPP_SRC_DIR Jul 4, 2018
LICENSE.txt Initial commit Jul 3, 2018 Update README Jul 4, 2018
b Default generator is Ninja Jul 3, 2018


This is a simple template project that can build a standalone dear imgui application quickly.

    $ git clone --recurse-submodules

    # This will create the build dir and run CMake
    $ b

    # or if you don't have '.' in your PATH,  "./b"

    # Then build. Ninja is the default.

    $ cd build; ninja


  • GLFW and Dear Imgui only - (no boost, etc.)
    • They are imported as git submodules
  • Based on Dear Imgui glfw-opengl3 sample
  • Minimal CMake for build generation - builds Ninja, Xcode, Makefiles, etc.
  • OpenGL 3
  • Tested on Mac and Linux (even Wayland)
    • Might work with minor mods on Windows


Edit the 'b' file to switch CMake generators or change other options.


  1. Simple spinning cube
  2. Add more themes, break them out into a class
  3. When docking lands in Dear Imgui, make sure to pull that in


This project was inspired by a nicely done project (with more batteries included): asap by @abdes

You can’t perform that action at this time.