GSL/CMakeLists.txt

18 lines
438 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.0.0)
2015-08-20 21:09:14 -04:00
project(GSL CXX)
2015-08-20 21:09:14 -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-08-20 21:09:14 -04:00
enable_testing()
add_subdirectory(tests)