diff --git a/external/imgui/CMakeLists.txt b/external/imgui/CMakeLists.txt new file mode 100644 index 00000000..e5f53ca0 --- /dev/null +++ b/external/imgui/CMakeLists.txt @@ -0,0 +1,4 @@ +cmake_minimum_required(VERSION 3.20) +project(imgui CXX) + +add_library(imgui imgui_demo.cpp imgui_draw.cpp imgui_tables.cpp imgui_widgets.cpp imgui.cpp backends/imgui_impl_vulkan.cpp backends/imgui_impl_sdl3.cpp) \ No newline at end of file diff --git a/src/frontend/CMakeLists.txt b/src/frontend/CMakeLists.txt index d4277b88..6a4bb1ac 100644 --- a/src/frontend/CMakeLists.txt +++ b/src/frontend/CMakeLists.txt @@ -41,7 +41,10 @@ include_directories( ../../external/SDL/include ../../external/sse2neon ../../external/capstone/include + ../../external/imgui + ../../external/imgui/backends ../../external/cflags/include + ImGuiImpl/ ) option(RAPIDJSON_BUILD_DOC "Build rapidjson documentation." OFF) @@ -96,6 +99,7 @@ add_subdirectory(../../external/parallel-rdp parallel-rdp) add_subdirectory(../../external/unarr unarr) add_subdirectory(../../external/SDL SDL) add_subdirectory(../../external/cflags cflags) +add_subdirectory(../../external/imgui imgui) set(CAPSTONE_ARCHITECTURE_DEFAULT OFF) set(CAPSTONE_MIPS_SUPPORT ON) set(CAPSTONE_X86_SUPPORT ON) @@ -123,7 +127,7 @@ add_executable(kaizen Debugger.hpp Debugger.cpp) -target_link_libraries(kaizen PUBLIC SDL3::SDL3 SDL3::SDL3-static cflags::cflags discord-rpc fmt mio nlohmann_json parallel-rdp capstone backend) +target_link_libraries(kaizen PUBLIC imgui SDL3::SDL3 SDL3::SDL3-static cflags::cflags discord-rpc fmt mio nlohmann_json parallel-rdp capstone backend) target_compile_definitions(kaizen PUBLIC SDL_MAIN_HANDLED) file(COPY ../../resources/ DESTINATION ${PROJECT_BINARY_DIR}/resources/) diff --git a/src/frontend/ImGuiImpl/Checkbox.hpp b/src/frontend/ImGuiImpl/Checkbox.hpp new file mode 100644 index 00000000..6a5efaff --- /dev/null +++ b/src/frontend/ImGuiImpl/Checkbox.hpp @@ -0,0 +1,6 @@ +#pragma once +#include + +namespace gui { + +} \ No newline at end of file