2017-03-12 17:16:46 -04:00
|
|
|
cmake_minimum_required(VERSION 3.0.0)
|
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
|
|
|
|
2017-03-12 17:16:46 -04:00
|
|
|
add_library(cppgsl INTERFACE)
|
|
|
|
target_include_directories(cppgsl INTERFACE
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
|
|
|
$<INSTALL_INTERFACE:include>)
|
|
|
|
|
|
|
|
install(TARGETS cppgsl EXPORT cppgslConfig)
|
|
|
|
install(DIRECTORY include/gsl DESTINATION include)
|
|
|
|
|
|
|
|
export(EXPORT cppgslConfig)
|
|
|
|
install(EXPORT cppgslConfig DESTINATION cmake)
|
2015-11-21 14:13:21 -05:00
|
|
|
|
2015-08-20 21:09:14 -04:00
|
|
|
enable_testing()
|
2015-09-23 11:43:36 -04:00
|
|
|
add_subdirectory(tests)
|