1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-11 00:04:24 +00:00

CMake Backend Impl

This commit is contained in:
Pinwhell 2025-11-08 20:48:34 -04:00
parent af157f3c2a
commit 14315ef168
2 changed files with 7 additions and 0 deletions

View file

@ -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)

View file

@ -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)