diff options
| author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-08-30 03:37:42 -0300 |
|---|---|---|
| committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-08-30 08:45:56 -0300 |
| commit | a1a5570e9735cb3ead0149b26d00eb4d6ade744f (patch) | |
| tree | a044f6116c24f0618f34c73154cd8c86e89711c7 /externals/glad/CMakeLists.txt | |
| parent | 58e9f78844168e2770bf0b43d6931569642f27fb (diff) | |
Replace the previous OpenGL loader with a glad-generated 3.3 one
The main advantage of switching to glad from glLoadGen is that, apart
from being actively maintained, it supports a customizable entrypoint
loader function, which makes it possible to also support OpenGL ES.
Diffstat (limited to 'externals/glad/CMakeLists.txt')
| -rw-r--r-- | externals/glad/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/externals/glad/CMakeLists.txt b/externals/glad/CMakeLists.txt new file mode 100644 index 000000000..ebc5db1f2 --- /dev/null +++ b/externals/glad/CMakeLists.txt @@ -0,0 +1,11 @@ +set(SRCS + src/glad.c + ) +set(HEADERS + include/KHR/khrplatform.h + include/glad/glad.h + ) + +create_directory_groups(${SRCS} ${HEADERS}) +add_library(glad STATIC ${SRCS} ${HEADERS}) +target_include_directories(glad PUBLIC "include/") |
