mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
81204295be
Changes: - Switched old include_directories function for the newer target_include_directories. - Added GSL as a INTERFACE library - Added GSL project to the tests CMakeLists.txt so It can include it automatically.
26 lines
433 B
CMake
26 lines
433 B
CMake
cmake_minimum_required(VERSION 2.8.12)
|
|
|
|
project(GSL CXX)
|
|
|
|
set(GSL_HEADERS
|
|
"gsl/gsl"
|
|
"gsl/gsl_assert"
|
|
"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})
|
|
|
|
install(FILES ${GSL_HEADERS}
|
|
DESTINATION include/gsl
|
|
)
|
|
|
|
enable_testing()
|
|
|
|
add_subdirectory(tests)
|