Panda3DS/third_party/glad/CMakeLists.txt
2023-10-17 01:26:41 +03:00

13 lines
357 B
CMake

set(GLAD_FILES src/gl.c include/KHR/khrplatform.h)
if(WIN32)
set(GLAD_FILES ${GLAD_FILES} src/glad_wgl.c)
elseif(ANDROID)
set(GLAD_FILES ${GLAD_FILES} src/glad_egl.c)
elseif(NOT APPLE)
set(GLAD_FILES ${GLAD_FILES} src/glad_egl.c src/glad_glx.c)
endif()
add_library(glad STATIC ${GLAD_FILES})
target_include_directories(glad PUBLIC "include")