add_library( glad STATIC glad.c ) target_include_directories(glad PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) if(UNIX) target_link_libraries(glad dl) endif()