win_compat: Fix backend & file management
All checks were successful
Gol CI / build (push) Successful in 2m42s

This ensure the project builds on windows
This commit is contained in:
2026-04-21 13:21:46 +02:00
parent 0b70772009
commit 110ff7ed7e
5 changed files with 121 additions and 5 deletions

View File

@@ -8,7 +8,8 @@ set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
if(WIN32)
set(IMGUI_BACKEND "imgui_impl_dx11.cpp") # DirectX 11 for Windows
#set(IMGUI_BACKEND "imgui_impl_dx11.cpp") # DirectX 11 for Windows
set(IMGUI_BACKEND "imgui_impl_opengl3.cpp") # OpenGL for Linux
elseif(APPLE)
set(IMGUI_BACKEND "imgui_impl_metal.mm") # Metal for macOS
elseif(UNIX)