Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gpmueller/imgui-cmake

A Dear ImGui App using GLFW and OpenGL, built using CMake; Better example at GPMueller/imgui-app
https://github.com/gpmueller/imgui-cmake

cmake-examples cpp cross-platform imgui imgui-glfw mwe opengl3 wasm

Last synced: 3 days ago
JSON representation

A Dear ImGui App using GLFW and OpenGL, built using CMake; Better example at GPMueller/imgui-app

Awesome Lists containing this project

README

        

imgui-cmake
========================================

A cross-platform, C++11, Dear ImGui app
using CMake as build system and GLFW as
windowing backend.

Native application
----------------------------------------

Build the app by calling

```
mkdir -p build && cd build
cmake ..
cmake --build . -j4
cd ..
```

Web application
----------------------------------------

You need to have emscripten available.
Then, to build,

```
source /path/to/emsdk/emsdk_env.sh
mkdir -p build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=/path/to/emsdk/emscripten//cmake/Modules/Platform/Emscripten.cmake
cmake --build . -j4
cd ..
```

And to run the app, for example

```
cd ui-web
python3 -m http.server
open index.html
```

Dependencies
----------------------------------------

* Dear ImGui
* fmtlib
* GLFW
* glad
* OpenGL 3