citra/externals/glad/CMakeLists.txt
Emmanuel Gil Peyrot 5cc541ea7c cmake: Add missing -ldl for glad.
Fixes compilation failure introduced in a1a5570e97.
2015-09-05 18:57:34 +01:00

15 lines
350 B
CMake

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/")
if (UNIX AND NOT APPLE)
target_link_libraries(glad dl)
endif()