- C++ 72.7%
- C 24%
- Objective-C++ 2.1%
- CMake 0.8%
- Objective-C 0.2%
- Other 0.1%
| dependencies | ||
| fonts | ||
| lib | ||
| scripts | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| .gitmodules | ||
| CMakeLists.txt | ||
| Dockerfile | ||
| LICENSE | ||
| Readme.md | ||
ImGui CMake
This will be a test with ImGui and CMake using custom fonts, and has only been tested on PopOS 24.04 but should run on just about any Debian based distro.
I will be making a Windows build for this project later on, and setting up a Docker image in the future for easier building.
This is using OpenGL3, and GLFW.
Required packages for Linux, there are probably more that are required, I am just not sure.
- build-essential
- cmake
- gcc
- g++
- libglew-dev
- libglfw3-dev
- libglfw3
- libc6-dev
- libfreetype6-dev
- libspdlog-dev - Required for spdlog
I have made a fork of the Lua project that I was working with to modify the linit.c file to disable the debug, io, and os modules.
My fork of Lua is located here
Building
To build this project:
- Setup the CMake files
cmake -B build
- Build the project
cmake --build build --parallel
- Copy the
fontsfolder into the same directory as ImGui, I will automate this with CMake later.
Docker
I have added Docker support for this project.
To build this project with Docker
docker build -t imgui-cmake:1.0a .
To view built project files with Docker
docker run --rm -it imgui-cmake:1.0a /bin/bash
Credits
Originally from this Gist
Another gist here that might work for this
Credit to user-grinch on GitHub for the ImGui menu style and fonts
The CMake Lua build that I forked.
The LuaBridge library that I am using
License
This project is licensed under the MIT license.