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