Created
August 17, 2024 22:28
-
-
Save 413x1nkp/2e46c816e4a85b339476955421f382e1 to your computer and use it in GitHub Desktop.
small patch for cimgui to build it with ImGuiFileDialog support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 669232458c328f773b5dc0c8cdc3f77d0a9bb0b1 Mon Sep 17 00:00:00 2001 | |
From: Alex Murkoff <[email protected]> | |
Date: Thu, 15 Aug 2024 06:57:50 +0700 | |
Subject: [PATCH] build with ImGuiFileDialog | |
--- | |
CMakeLists.txt | 9 +++++++-- | |
1 file changed, 7 insertions(+), 2 deletions(-) | |
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index 5012db3..8171a52 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -21,6 +21,11 @@ file(GLOB IMGUI_SOURCES | |
${TABLES_SOURCE} | |
) | |
+file(GLOB IG_FILEDIALOG_SOURCES | |
+ ImGuiFileDialog/*.h | |
+ ImGuiFileDialog/*.cpp | |
+) | |
+ | |
set(IMGUI_STATIC "no" CACHE STRING "Build as a static library") | |
set(IMGUI_FREETYPE "no" CACHE STRING "Build with freetype library") | |
set(IMGUI_LIBRARIES ) | |
@@ -34,9 +39,9 @@ endif(IMGUI_FREETYPE) | |
#add library and link | |
if (IMGUI_STATIC) | |
- add_library(cimgui STATIC ${IMGUI_SOURCES}) | |
+ add_library(cimgui STATIC ${IMGUI_SOURCES} ${IG_FILEDIALOG_SOURCES}) | |
else (IMGUI_STATIC) | |
- add_library(cimgui SHARED ${IMGUI_SOURCES}) | |
+ add_library(cimgui SHARED ${IMGUI_SOURCES} ${IG_FILEDIALOG_SOURCES}) | |
endif (IMGUI_STATIC) | |
target_compile_definitions(cimgui PUBLIC IMGUI_DISABLE_OBSOLETE_FUNCTIONS=1) | |
-- | |
2.46.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment