2021-07-08 13:13:21 +00:00
|
|
|
add_library(glad
|
2024-02-18 13:55:27 +00:00
|
|
|
include/glad/gl.h
|
|
|
|
include/KHR/khrplatform.h
|
|
|
|
src/gl.c
|
2021-07-08 13:13:21 +00:00
|
|
|
)
|
|
|
|
|
2024-02-18 13:55:27 +00:00
|
|
|
target_include_directories(glad PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
|
|
|
target_link_libraries(glad PRIVATE Threads::Threads "${CMAKE_DL_LIBS}")
|
|
|
|
|
2021-07-08 13:13:21 +00:00
|
|
|
if(WIN32)
|
|
|
|
target_sources(glad PRIVATE
|
2024-02-18 13:55:27 +00:00
|
|
|
include/glad/wgl.h
|
|
|
|
src/wgl.c
|
2021-07-08 13:13:21 +00:00
|
|
|
)
|
2024-02-18 13:55:27 +00:00
|
|
|
else()
|
2021-07-08 13:13:21 +00:00
|
|
|
target_sources(glad PRIVATE
|
2024-02-18 13:55:27 +00:00
|
|
|
include/EGL/eglplatform.h
|
|
|
|
include/glad/egl.h
|
|
|
|
src/egl.c
|
2021-07-08 13:13:21 +00:00
|
|
|
)
|
|
|
|
endif()
|