mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Merge pull request #207 from jasonhorsburgh/cmake_install
Add CMake install target for header files
This commit is contained in:
commit
4235b060fd
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user