mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 00:25:47 -04:00
dep/glad: Update to v2.0.5
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
set(SRCS
|
||||
src/glad.c
|
||||
include/glad/gl.h
|
||||
include/KHR/khrplatform.h
|
||||
src/gl.c
|
||||
)
|
||||
|
||||
# Linking as a static library breaks on macOS, see https://github.com/libigl/libigl/issues/751
|
||||
@ -9,18 +11,20 @@ else()
|
||||
add_library(glad ${SRCS})
|
||||
endif()
|
||||
|
||||
target_include_directories(glad PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
target_include_directories(glad INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
target_include_directories(glad PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
target_link_libraries(glad PRIVATE Threads::Threads "${CMAKE_DL_LIBS}")
|
||||
|
||||
if(WIN32)
|
||||
target_sources(glad PRIVATE src/glad_wgl.c)
|
||||
target_sources(glad PRIVATE
|
||||
include/glad/wgl.h
|
||||
src/wgl.c
|
||||
)
|
||||
else()
|
||||
if(ENABLE_EGL)
|
||||
target_sources(glad PRIVATE src/glad_egl.c)
|
||||
target_link_libraries(glad PRIVATE EGL::EGL)
|
||||
endif()
|
||||
if(ENABLE_X11)
|
||||
target_sources(glad PRIVATE src/glad_glx.c)
|
||||
target_sources(glad PRIVATE
|
||||
include/EGL/eglplatform.h
|
||||
include/glad/egl.h
|
||||
src/egl.c
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user