add ImGuizmo

This commit is contained in:
2025-11-29 12:09:40 +08:00
parent 788081479a
commit 5b99111bc4
11 changed files with 126 additions and 13 deletions

View File

@ -17,7 +17,11 @@ add_subdirectory(vendor/TinyFileDialog EXCLUDE_FROM_ALL)
# ------------- imgui -------------
set(IMGUI_DIR vendor/ImGui)
include_directories(${IMGUI_DIR} ${IMGUI_DIR}/backends)
include_directories(
${IMGUI_DIR}
${IMGUI_DIR}/backends
)
file(GLOB IMGUI_SOURCE
${IMGUI_DIR}/*.cpp
${IMGUI_DIR}/backends/imgui_impl_opengl3.cpp
@ -26,6 +30,17 @@ file(GLOB IMGUI_SOURCE
# add imgui source
list(APPEND SRC_SOURCE ${IMGUI_SOURCE})
# ------------- ImGuizmo -------------
set(IMGUIZMO_DIR vendor/ImGuizmo)
include_directories(${IMGUIZMO_DIR})
file(GLOB IMGUIZMO_SOURCE ${IMGUIZMO_DIR}/*.cpp)
# add imguizmo source
list(APPEND SRC_SOURCE ${IMGUIZMO_SOURCE})
# ------------- link libraries -------------
set(LINK_LIBRARIES_PRIVATE
spdlog
@ -53,6 +68,7 @@ endif()
set(TARGET_INCLUDE_DIR
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
${IMGUI_DIR}
${IMGUIZMO_DIR}
)
# ------------- debug Defines -------------