From e7c4b2d56b3bc6602959f642df4ba09bc521f352 Mon Sep 17 00:00:00 2001 From: EmaMaker Date: Mon, 18 Sep 2023 16:03:30 +0200 Subject: [PATCH] lib: add dearimgui lib --- .gitmodules | 3 +++ lib/CMakeLists.txt | 3 ++- lib/imgui | 1 + src/CMakeLists.txt | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .gitmodules create mode 160000 lib/imgui diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..cda35d8 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "lib/imgui"] + path = lib/imgui + url = https://github.com/ocornut/imgui/ diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index bc8d57b..8e1e4fd 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -1,2 +1,3 @@ add_subdirectory(glad) -add_subdirectory(glm) \ No newline at end of file +add_subdirectory(glm) +add_subdirectory(imgui) diff --git a/lib/imgui b/lib/imgui new file mode 160000 index 0000000..6addf28 --- /dev/null +++ b/lib/imgui @@ -0,0 +1 @@ +Subproject commit 6addf28c4b5d8fd109a6db73bed6436952b230b2 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f05a4ea..cfbbf1e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -5,5 +5,5 @@ set(SOURCE_FILES main.cpp chunk.cpp chunkmanager.cpp chunkmesher.cpp chunkgenera add_executable(OpenGLTest ${SOURCE_FILES}) -target_link_libraries(OpenGLTest glfw tbb glad glm) +target_link_libraries(OpenGLTest glfw tbb glad glm imgui) install(TARGETS OpenGLTest DESTINATION ${DIVISIBLE_INSTALL_BIN_DIR})