summaryrefslogtreecommitdiff
path: root/glad.CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'glad.CMakeLists.txt')
-rw-r--r--glad.CMakeLists.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/glad.CMakeLists.txt b/glad.CMakeLists.txt
new file mode 100644
index 0000000..b77ab48
--- /dev/null
+++ b/glad.CMakeLists.txt
@@ -0,0 +1,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()