Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
stenzek
GitHub Repository: stenzek/duckstation
Path: blob/master/dep/glad/CMakeLists.txt
4243 views
1
set(SRCS
2
include/glad/gl.h
3
include/KHR/khrplatform.h
4
src/gl.c
5
)
6
7
# Linking as a static library breaks on macOS, see https://github.com/libigl/libigl/issues/751
8
if(APPLE)
9
add_library(glad OBJECT ${SRCS})
10
else()
11
add_library(glad ${SRCS})
12
endif()
13
14
target_include_directories(glad PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
15
target_link_libraries(glad PRIVATE Threads::Threads "${CMAKE_DL_LIBS}")
16
17
if(WIN32)
18
target_sources(glad PRIVATE
19
include/glad/wgl.h
20
src/wgl.c
21
)
22
else()
23
target_sources(glad PRIVATE
24
include/EGL/eglplatform.h
25
include/glad/egl.h
26
src/egl.c
27
)
28
endif()
29
30