summaryrefslogtreecommitdiff
path: root/glad.CMakeLists.txt
blob: b77ab483cdcab2b3712737fab5b78891d79bbd4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
cmake_minimum_required(VERSION 3.19)

set(CMAKE_C_STANDARD 99)

add_library(
	glad STATIC
	
	"src/glad.c"
)

target_enable_optimisations(glad)

target_include_directories(
	glad PUBLIC

	"include"
)

if("${CMAKE_C_COMPILER_ID}" MATCHES "Clang|GNU")
	target_compile_options(
		glad PRIVATE

		-g
	)
endif()