From 14315ef1682fd4951d30492225cc1537162e5b9e Mon Sep 17 00:00:00 2001 From: Pinwhell <60289470+pinwhell@users.noreply.github.com> Date: Sat, 8 Nov 2025 20:48:34 -0400 Subject: [PATCH] CMake Backend Impl --- CMakeLists.txt | 1 + backends/CMakeLists.txt | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 586117121..a63a5f171 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 3.15) project(imgui) option(IMGUI_IMPL_WIN32 "Enable ImGui Win32 implementation" ON) +option(IMGUI_IMPL_GLFW "Enable ImGui GLFW implementation" ON) option(IMGUI_IMPL_OPENGL2 "Enable ImGui OpenGL2 implementation" ON) option(IMGUI_IMPL_OPENGL3 "Enable ImGui OpenGL3 implementation" ON) option(IMGUI_IMPL_DX9 "Enable ImGui DirectX9 implementation" ON) diff --git a/backends/CMakeLists.txt b/backends/CMakeLists.txt index 628768b8d..16c20e878 100644 --- a/backends/CMakeLists.txt +++ b/backends/CMakeLists.txt @@ -23,8 +23,14 @@ if(IMGUI_IMPL_WIN32) add_backend(win32) endif() +if(IMGUI_IMPL_GLFW) +add_backend(glfw) +endif() + if(OpenGL_FOUND) + + if(IMGUI_IMPL_OPENGL2) add_backend(opengl2) target_link_libraries(imgui-opengl2 OpenGL::GL)