glad input imgui

This commit is contained in:
2025-11-20 21:00:23 +08:00
parent f70881e364
commit 041b99e0eb
19 changed files with 6312 additions and 23 deletions

View File

@ -2,18 +2,29 @@ project(Prism)
file(GLOB_RECURSE SRC_SOURCE src/**.cpp)
# configure
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
add_subdirectory(vendor/spdlog EXCLUDE_FROM_ALL)
add_subdirectory(vendor/glfw EXCLUDE_FROM_ALL)
add_subdirectory(vendor/glad EXCLUDE_FROM_ALL)
# imgui
set(IMGUI_DIR vendor/imgui)
include_directories(${IMGUI_DIR} ${IMGUI_DIR}/backends)
file(GLOB IMGUI_SOURCE
${IMGUI_DIR}/*.cpp
${IMGUI_DIR}/backends/imgui_impl_opengl3.cpp
${IMGUI_DIR}/backends/imgui_impl_glfw.cpp)
# add imgui source
list(APPEND SRC_SOURCE ${IMGUI_SOURCE})
# link libraries
set(LINK_LIBRARIES
spdlog
glfw
glad
)
# link library opengl