mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
f6cc5798a1
whether using it from the development folder, from the installation folder or from being copied into a project. #include <gsl/gsl.h> Updated headers/tests/instructions/cmake build accordingly This PR should address https://github.com/Microsoft/GSL/issues/277 (less the renaming of gsl itself)
23 lines
314 B
CMake
23 lines
314 B
CMake
cmake_minimum_required(VERSION 2.8.7)
|
|
|
|
project(GSL CXX)
|
|
|
|
set(GSL_HEADERS
|
|
"gsl/gsl.h"
|
|
"gsl/gsl_assert.h"
|
|
"gsl/span.h"
|
|
"gsl/string_span.h"
|
|
)
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|
|
|
|
install(FILES ${GSL_HEADERS}
|
|
DESTINATION include/gsl
|
|
)
|
|
|
|
enable_testing()
|
|
|
|
add_subdirectory(tests)
|