diff --git a/CMakeLists.txt b/CMakeLists.txt index 00d8a1b..0704b03 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,7 @@ set(CMAKE_CXX_EXTENSIONS OFF) include(debug_flags) add_subdirectory(src) +add_subdirectory(include) if(WITH_TESTS) add_subdirectory(tests) diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt new file mode 100644 index 0000000..5594349 --- /dev/null +++ b/include/CMakeLists.txt @@ -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")