shithub: cstory

ref: 8b854a0c9557858c2efa04b57719f27d5df4f3fe
dir: /external/glad/CMakeLists.txt/

View raw version
cmake_minimum_required(VERSION 3.8)

if(NOT TARGET glad)

project(glad LANGUAGES C)

add_library(glad STATIC
	"include/glad/glad.h"
	"include/KHR/khrplatform.h"
	"src/glad.c"
)

target_include_directories(glad PUBLIC "include")
target_link_libraries(glad PRIVATE ${CMAKE_DL_LIBS})

endif(NOT TARGET glad)