cave-story-solaris/external/glad/CMakeLists.txt
Clownacy e39c46fae9 Force glad to be static
Pretty sure it isn't set up to generate a proper DLL, so make sure it
always produces a static library instead.
2020-04-05 03:27:50 +01:00

16 lines
306 B
CMake

cmake_minimum_required(VERSION 3.12)
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)