MushMachine/external/glad-debug/CMakeLists.txt
Green Sky 6b06d5cb99 update all cmake files to version 3.9
other misc cmake fixes

version 3.9 allows for ipo (lto)
2022-05-03 19:33:19 +02:00

22 lines
332 B
CMake

cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
project(glad C)
set(C_FILES
"src/glad.c"
)
set(H_FILES
"include/glad/glad.h"
"include/KHR/khrplatform.h"
)
add_library(glad ${C_FILES} ${H_FILES})
target_include_directories(glad PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
if(UNIX)
target_link_libraries(glad dl)
endif()