add_subdirectory(glad/cmake EXCLUDE_FROM_ALL)

glad_add_library(
        glad
        SHARED
        EXCLUDE_FROM_ALL
        MERGE
        MX
        ALIAS
        QUIET
        KEEP_SOURCES
        LOCATION "${CMAKE_CURRENT_BINARY_DIR}/glad"
        LANGUAGE C
        API gl:core=4.6
)

add_library(glad::glad ALIAS glad)

RegisterLibrary(glad PRIVATE OFF)

# lib glad
