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: 29 days ago
JSON representation
A Dear ImGui App using GLFW and OpenGL, built using CMake; Better example at GPMueller/imgui-app
- Host: GitHub
- URL: https://github.com/gpmueller/imgui-cmake
- Owner: GPMueller
- License: mit
- Created: 2020-05-30T17:15:32.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-03T12:21:26.000Z (almost 5 years ago)
- Last Synced: 2025-04-24T01:06:20.426Z (29 days ago)
- Topics: cmake-examples, cpp, cross-platform, imgui, imgui-glfw, mwe, opengl3, wasm
- Language: C++
- Homepage: https://github.com/GPMueller/imgui-app
- Size: 1.68 MB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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