mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-02-06 16:47:59 +08:00
imgui : use GL3W
This commit is contained in:
9
examples/third-party/imgui/CMakeLists.txt
vendored
9
examples/third-party/imgui/CMakeLists.txt
vendored
@@ -33,8 +33,8 @@ target_link_libraries(imgui PRIVATE
|
||||
|
||||
if (GGWAVE_SUPPORT_SDL2)
|
||||
if (MINGW)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_search_module(SDL2 REQUIRED sdl2)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_search_module(SDL2 REQUIRED sdl2)
|
||||
|
||||
add_library(imgui-sdl2 ${GGWAVE_LIBRARY_TYPE}
|
||||
imgui/examples/libs/gl3w/GL/gl3w.c
|
||||
@@ -90,6 +90,11 @@ if (GGWAVE_SUPPORT_SDL2)
|
||||
imgui-extra/imgui_impl_opengl3.cpp
|
||||
)
|
||||
|
||||
# force GL3W loader
|
||||
target_compile_definitions(imgui-sdl2 PUBLIC
|
||||
IMGUI_IMPL_OPENGL_LOADER_GL3W=1
|
||||
)
|
||||
|
||||
target_include_directories(imgui-sdl2 PUBLIC
|
||||
imgui/examples/libs/gl3w
|
||||
${SDL2_INCLUDE_DIRS}
|
||||
|
||||
Reference in New Issue
Block a user