summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortastytea2020-01-03 16:03:08 +0100
committertastytea2020-01-03 16:03:08 +0100
commit94dd5f605d63d99dfb7c81b2e77b16a645fe8696 (patch)
treeeed1d9a1541699581d801b4d32675649d853a4c9
parent59778f0d75981b1038b3f4ed6f25f4f6d6a3d656 (diff)
downloadmastodonpp-94dd5f605d63d99dfb7c81b2e77b16a645fe8696.tar
mastodonpp-94dd5f605d63d99dfb7c81b2e77b16a645fe8696.tar.gz
mastodonpp-94dd5f605d63d99dfb7c81b2e77b16a645fe8696.zip
Install headers.
-rw-r--r--CMakeLists.txt1
-rw-r--r--include/CMakeLists.txt6
2 files changed, 7 insertions, 0 deletions
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")