Minimal cimgui demo made with CMake project format.
The project includes the following dependencies:
The following files are used for using cimgui as CMake dependency:
3rdparty/cimgui- directory with cimgui headers copied from the original repository. This is a git submodule in this repository.cmake/cimgui.cmake- CMake module that defines variablesCIMGUI_LIBRARYandCIMGUI_INCLUDE_DIRS.
apt install \
build-essential \
cmake \
xorg-dev \
libgl1-mesa-dev \
libfreetype6-dev \
libxkbcommon-dev
Additional dependency for building under Wayland:
apt install libwayland-dev
dnf install \
gcc gcc-c++ make \
cmake \
mesa-libGL-devel \
libXrandr-devel \
libXinerama-devel \
libXcursor-devel \
libXi-devel \
libxkbcommon-devel \
freetype-devel
Additional dependency for building under Wayland:
dnf install wayland-devel
Check out sources with --recursive parameter for 3rd-party libraries:
git clone --recursive https://github.com/Postrediori/MinimalCimgui.git
Prepare build with CMake and build executables
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
make install
Using make install will copy the executable to bundle directory:
./bundle/MinimalCimgui
