Merge pull request #207 from jasonhorsburgh/cmake_install

Add CMake install target for header files
This commit is contained in:
Neil MacIntosh 2016-08-03 10:37:10 -07:00 committed by GitHub
commit 4235b060fd

View File

@ -2,10 +2,21 @@ cmake_minimum_required(VERSION 2.8.7)
project(GSL CXX) project(GSL CXX)
set(GSL_HEADERS
"include/gsl.h"
"include/gsl_assert.h"
"include/span.h"
"include/string_span.h"
)
include_directories( include_directories(
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
) )
install(FILES ${GSL_HEADERS}
DESTINATION include/gsl
)
enable_testing() enable_testing()
add_subdirectory(tests) add_subdirectory(tests)