2017-04-18 00:04:43 -04:00
|
|
|
cmake_minimum_required(VERSION 3.8.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-04-18 00:04:43 -04:00
|
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
|
|
|
|
|
|
|
add_library(cppGSL INTERFACE)
|
|
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
target_compile_features(cppGSL INTERFACE cxx_std_14)
|
|
|
|
|
|
|
|
target_include_directories(cppGSL INTERFACE
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
|
|
|
$<INSTALL_INTERFACE:include/gsl>
|
|
|
|
)
|
|
|
|
|
|
|
|
target_sources(cppGSL INTERFACE
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/GSL.natvis
|
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)
|