summaryrefslogtreecommitdiff
path: root/externals/glad
diff options
context:
space:
mode:
authorGravatar Lioncash2018-01-17 19:37:34 -0500
committerGravatar Lioncash2018-01-17 21:51:43 -0500
commite710a1b9894d835d740ed63c03098fd637f61f63 (patch)
tree7585a15cdf38ea2913a847c738c84e769e43ea77 /externals/glad
parentMerge pull request #73 from N00byKing/3093 (diff)
downloadyuzu-e710a1b9894d835d740ed63c03098fd637f61f63.tar.gz
yuzu-e710a1b9894d835d740ed63c03098fd637f61f63.tar.xz
yuzu-e710a1b9894d835d740ed63c03098fd637f61f63.zip
CMakeLists: Derive the source directory grouping from targets themselves
Removes the need to store to separate SRC and HEADER variables, and then construct the target in most cases.
Diffstat (limited to 'externals/glad')
-rw-r--r--externals/glad/CMakeLists.txt15
1 files changed, 6 insertions, 9 deletions
diff --git a/externals/glad/CMakeLists.txt b/externals/glad/CMakeLists.txt
index 6d35a844b..c43ae475a 100644
--- a/externals/glad/CMakeLists.txt
+++ b/externals/glad/CMakeLists.txt
@@ -1,13 +1,10 @@
1set(SRCS 1add_library(glad STATIC
2 src/glad.c 2 src/glad.c
3 ) 3 include/KHR/khrplatform.h
4set(HEADERS 4 include/glad/glad.h
5 include/KHR/khrplatform.h 5)
6 include/glad/glad.h
7 )
8 6
9create_directory_groups(${SRCS} ${HEADERS}) 7create_target_directory_groups(glad)
10add_library(glad STATIC ${SRCS} ${HEADERS})
11target_include_directories(glad PUBLIC "include/") 8target_include_directories(glad PUBLIC "include/")
12 9
13if ("${CMAKE_SYSTEM_NAME}" MATCHES "Linux") 10if ("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")