mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 03:52:48 -05:00
32 lines
891 B
CMake
32 lines
891 B
CMake
include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
|
imgui
|
|
GIT_REPOSITORY https://github.com/ocornut/imgui
|
|
GIT_TAG v1.86
|
|
GIT_PROGRESS TRUE
|
|
)
|
|
|
|
FetchContent_GetProperties(imgui)
|
|
if (NOT ${imgui}_POPULATED)
|
|
FetchContent_MakeAvailable(imgui)
|
|
|
|
add_library(
|
|
imgui
|
|
${imgui_SOURCE_DIR}/backends/imgui_impl_glfw.cpp
|
|
${imgui_SOURCE_DIR}/backends/imgui_impl_glfw.h
|
|
${imgui_SOURCE_DIR}/backends/imgui_impl_opengl3.cpp
|
|
${imgui_SOURCE_DIR}/backends/imgui_impl_opengl3.h
|
|
${imgui_SOURCE_DIR}/imgui.cpp
|
|
${imgui_SOURCE_DIR}/imgui.h
|
|
${imgui_SOURCE_DIR}/imgui_demo.cpp
|
|
${imgui_SOURCE_DIR}/imgui_draw.cpp
|
|
${imgui_SOURCE_DIR}/imgui_tables.cpp
|
|
${imgui_SOURCE_DIR}/imgui_widgets.cpp
|
|
)
|
|
|
|
target_include_directories(imgui PUBLIC ${imgui_SOURCE_DIR})
|
|
target_link_libraries(imgui PRIVATE glfw)
|
|
endif ()
|
|
|