Install headers.

This commit is contained in:
tastytea 2020-01-03 16:03:08 +01:00
parent 59778f0d75
commit 94dd5f605d
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
include(debug_flags)
add_subdirectory(src)
add_subdirectory(include)
if(WITH_TESTS)
add_subdirectory(tests)

6
include/CMakeLists.txt Normal file
View File

@ -0,0 +1,6 @@
include(GNUInstallDirs)
# The trailing / is important.
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}"
FILES_MATCHING PATTERN "*.hpp")