25476d4e1e
This PR updates imgui and its dependencies from the last time, ~1 year ago (deabacbd50
) Commits will be refactored before merging Things you might ask : - why did you remove `ImGui_ImplGlfw_SetBorderlessWindowMode()` ? -> Where is it used ? The only usage of it I see is commented (cb9a3b1f55/lib/external/imgui/source/imgui_impl_glfw.cpp (L757)
) - why did you remove the implot anti aliasing flag ? -> They.. seem to have removed it altogether ? https://github.com/epezent/implot/issues/479
42 lines
1.3 KiB
CMake
Vendored
42 lines
1.3 KiB
CMake
Vendored
cmake_minimum_required(VERSION 3.16)
|
|
project(imgui)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
find_package(Freetype REQUIRED)
|
|
find_package(OpenGL REQUIRED)
|
|
pkg_search_module(GLFW REQUIRED glfw3)
|
|
|
|
add_library(imgui OBJECT
|
|
source/imgui.cpp
|
|
source/imgui_demo.cpp
|
|
source/imgui_draw.cpp
|
|
include/misc/freetype/imgui_freetype.cpp # TODO move source and includes in the same directory
|
|
source/imgui_impl_glfw.cpp
|
|
source/imgui_impl_opengl3.cpp
|
|
source/imgui_tables.cpp
|
|
source/imgui_widgets.cpp
|
|
|
|
source/TextEditor.cpp
|
|
|
|
source/imnodes.cpp
|
|
|
|
source/implot.cpp
|
|
source/implot_items.cpp
|
|
source/implot_demo.cpp
|
|
|
|
source/fonts/fontawesome_font.c
|
|
source/fonts/codicons_font.c
|
|
source/fonts/unifont_font.c
|
|
)
|
|
|
|
target_compile_definitions(imgui PUBLIC IMGUI_IMPL_OPENGL_LOADER_GLAD)
|
|
target_compile_options(imgui PRIVATE -Wno-stringop-overflow)
|
|
|
|
target_compile_definitions(imgui PUBLIC IMGUI_USER_CONFIG="imgui_config.h")
|
|
|
|
target_include_directories(imgui PUBLIC include ${FREETYPE_INCLUDE_DIRS} ${GLFW_INCLUDE_DIRS} ${OpenGL_INCLUDE_DIRS})
|
|
target_link_directories(imgui PUBLIC ${GLFW_LIBRARY_DIRS} ${OpenGL_LIBRARY_DIRS})
|
|
target_link_libraries(imgui PUBLIC Freetype::Freetype ${GLFW_LIBRARIES} ${OPENGL_LIBRARIES})
|