From 7505111329ad32b76b479a5a29961dfb6ea59f55 Mon Sep 17 00:00:00 2001 From: Jason Horsburgh Date: Sat, 21 Nov 2015 19:13:21 +0000 Subject: [PATCH] Add CMake install target for header files --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f8145d6..7397fe2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,10 +2,21 @@ cmake_minimum_required(VERSION 2.8.7) project(GSL CXX) +set(GSL_HEADERS + "include/gsl.h" + "include/gsl_assert.h" + "include/span.h" + "include/string_span.h" +) + include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) +install(FILES ${GSL_HEADERS} + DESTINATION include/gsl +) + enable_testing() add_subdirectory(tests)