From 4c43f082486540045ced1f609e88c0f9cc4e9d42 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 9 Jul 2024 00:56:11 +0200 Subject: [PATCH] ImGui: move core demo to 'demo' directory Light cleanup. --- src/thirdparty/imgui/CMakeLists.txt | 7 ++++++- src/thirdparty/imgui/{ => demos}/imgui_demo.cpp | 0 2 files changed, 6 insertions(+), 1 deletion(-) rename src/thirdparty/imgui/{ => demos}/imgui_demo.cpp (100%) diff --git a/src/thirdparty/imgui/CMakeLists.txt b/src/thirdparty/imgui/CMakeLists.txt index 7fb9b5f6..0cf85e4a 100644 --- a/src/thirdparty/imgui/CMakeLists.txt +++ b/src/thirdparty/imgui/CMakeLists.txt @@ -7,7 +7,6 @@ add_sources( SOURCE_GROUP "Core" "imconfig.h" "imgui.cpp" "imgui.h" - "imgui_demo.cpp" "imgui_draw.cpp" "imgui_internal.h" "imgui_tables.cpp" @@ -41,8 +40,14 @@ add_sources( SOURCE_GROUP "Misc" "misc/cpp/imgui_stdlib.h" ) +add_sources( SOURCE_GROUP "Demos" + "demos/imgui_demo.cpp" +) + end_sources() thirdparty_suppress_warnings() target_compile_definitions( ${PROJECT_NAME} PRIVATE BUILDING_LIBIMGUI ) + +target_include_directories( ${PROJECT_NAME} PRIVATE "${THIRDPARTY_SOURCE_DIR}/imgui/" ) target_include_directories( ${PROJECT_NAME} PRIVATE "${THIRDPARTY_SOURCE_DIR}/sdl/include/" ) diff --git a/src/thirdparty/imgui/imgui_demo.cpp b/src/thirdparty/imgui/demos/imgui_demo.cpp similarity index 100% rename from src/thirdparty/imgui/imgui_demo.cpp rename to src/thirdparty/imgui/demos/imgui_demo.cpp