Commit f492295 1 parent 73db193 commit f492295 Copy full SHA for f492295
File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 35
35
# glad_add_library(glad_gl_compat_10 MODULE API gl:compatibility=1.0 EXTENSIONS GL_EXT_COMPRESSION_s3tc)
36
36
# ```
37
37
# - create a static glad library with the vulkan=1.1
38
+ # ```
39
+ # glad_add_library(glad_vulkan_11 STATIC API vulkan=1.1)
40
+ # ```
38
41
39
42
# Extract specification, profile and version from a string
40
43
# examples:
@@ -179,9 +182,9 @@ function(glad_add_library TARGET)
179
182
message (STATUS "Glad Library \' ${TARGET} \' " )
180
183
181
184
find_package (Python COMPONENTS Interpreter REQUIRED)
182
-
185
+
183
186
cmake_parse_arguments (GG "MERGE;QUIET;REPRODUCIBLE;STATIC;SHARED;MODULE;INTERFACE;EXCLUDE_FROM_ALL" "LOCATION;LANGUAGE" "API;EXTENSIONS" ${ARGN} )
184
-
187
+
185
188
if (NOT GG_LOCATION)
186
189
set (GG_LOCATION "${CMAKE_CURRENT_BINARY_DIR} /gladsources/${TARGET} " )
187
190
endif ()
@@ -281,7 +284,7 @@ function(glad_add_library TARGET)
281
284
PUBLIC
282
285
${CMAKE_DL_LIBS}
283
286
)
284
-
287
+
285
288
if (GG_SHARED)
286
289
target_compile_definitions ("${TARGET} " PUBLIC GLAD_API_CALL_EXPORT)
287
290
set_target_properties ("${TARGET} "
You can’t perform that action at this time.
0 commit comments