2017-12-11 05:25:03 +05:30
|
|
|
add_library(glad STATIC
|
|
|
|
src/glad.c
|
|
|
|
include/KHR/khrplatform.h
|
|
|
|
include/glad/glad.h
|
|
|
|
)
|
2015-08-30 12:07:42 +05:30
|
|
|
|
2017-12-11 05:25:03 +05:30
|
|
|
create_target_directory_groups(glad)
|
2015-08-30 12:07:42 +05:30
|
|
|
target_include_directories(glad PUBLIC "include/")
|
2017-05-28 08:16:26 +05:30
|
|
|
|
2015-09-07 04:04:15 +05:30
|
|
|
if ("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
|
2017-05-28 08:16:26 +05:30
|
|
|
target_link_libraries(glad PRIVATE dl)
|
2015-09-07 04:04:15 +05:30
|
|
|
endif()
|