GSL/CMakeLists.txt

26 lines
433 B
CMake
Raw Normal View History

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