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})