|
|
@ -2,7 +2,10 @@ cmake_minimum_required(VERSION 3.7) |
|
|
|
|
|
|
|
project(glad) |
|
|
|
|
|
|
|
add_library(${PROJECT_NAME} ${PROJECT_SOURCE_DIR}/glad.c) |
|
|
|
add_library(${PROJECT_NAME} ${PROJECT_SOURCE_DIR}/src/gl.c) |
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME} PRIVATE |
|
|
|
${PROJECT_SOURCE_DIR}/include) |
|
|
|
|
|
|
|
# Install library |
|
|
|
install(TARGETS ${PROJECT_NAME} |
|
|
@ -14,9 +17,12 @@ install(TARGETS ${PROJECT_NAME} |
|
|
|
# Install headers |
|
|
|
install( |
|
|
|
FILES |
|
|
|
${PROJECT_SOURCE_DIR}/glad.h |
|
|
|
${PROJECT_SOURCE_DIR}/khrplatform.h |
|
|
|
${PROJECT_SOURCE_DIR}/include/glad/gl.h |
|
|
|
DESTINATION include/glad) |
|
|
|
install( |
|
|
|
FILES |
|
|
|
${PROJECT_SOURCE_DIR}/include/KHR/khrplatform.h |
|
|
|
DESTINATION include/KHR) |
|
|
|
|
|
|
|
# Install CMake config file |
|
|
|
install(EXPORT ${PROJECT_NAME}-targets |
|
|
|