|
|
|
@ -16,11 +16,11 @@ target_link_libraries(glad PRIVATE Threads::Threads "${CMAKE_DL_LIBS}")
|
|
|
|
if(WIN32)
|
|
|
|
if(WIN32)
|
|
|
|
target_sources(glad PRIVATE src/glad_wgl.c)
|
|
|
|
target_sources(glad PRIVATE src/glad_wgl.c)
|
|
|
|
else()
|
|
|
|
else()
|
|
|
|
if(USE_EGL)
|
|
|
|
if(ENABLE_EGL)
|
|
|
|
target_sources(glad PRIVATE src/glad_egl.c)
|
|
|
|
target_sources(glad PRIVATE src/glad_egl.c)
|
|
|
|
target_link_libraries(glad PRIVATE EGL::EGL)
|
|
|
|
target_link_libraries(glad PRIVATE EGL::EGL)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
if(USE_X11)
|
|
|
|
if(ENABLE_X11)
|
|
|
|
target_sources(glad PRIVATE src/glad_glx.c)
|
|
|
|
target_sources(glad PRIVATE src/glad_glx.c)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|