2016-09-20 10:05:40 -04:00
|
|
|
cmake_minimum_required(VERSION 2.8.12)
|
2015-08-20 21:09:14 -04:00
|
|
|
|
2015-09-23 11:43:36 -04:00
|
|
|
project(GSL CXX)
|
2015-08-20 21:09:14 -04:00
|
|
|
|
2015-11-21 14:13:21 -05:00
|
|
|
set(GSL_HEADERS
|
2016-08-10 12:24:00 -04:00
|
|
|
"gsl/gsl"
|
|
|
|
"gsl/gsl_assert"
|
2016-08-24 13:01:42 -04:00
|
|
|
"gsl/gsl_byte"
|
|
|
|
"gsl/gsl_util"
|
|
|
|
"gsl/multi_span"
|
2016-08-10 12:24:00 -04:00
|
|
|
"gsl/span"
|
|
|
|
"gsl/string_span"
|
2015-11-21 14:13:21 -05:00
|
|
|
)
|
|
|
|
|
2016-09-20 10:05:40 -04:00
|
|
|
add_library(${PROJECT_NAME} INTERFACE)
|
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
2015-08-20 21:09:14 -04:00
|
|
|
|
2015-11-21 14:13:21 -05:00
|
|
|
install(FILES ${GSL_HEADERS}
|
|
|
|
DESTINATION include/gsl
|
|
|
|
)
|
|
|
|
|
2015-08-20 21:09:14 -04:00
|
|
|
enable_testing()
|
|
|
|
|
2015-09-23 11:43:36 -04:00
|
|
|
add_subdirectory(tests)
|