summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-04-16 08:29:14 +0200
committerJohn Wiegley <johnw@newartisans.com>2023-04-18 14:47:24 -0700
commit84f3a3b6ab27c6de03e7460a51def508a16a9c6e (patch)
treecca16bed852d92362f75e88e16430cd5193f0850
parentf00cf4560bb38df429ef711d15dbbeccaf5699d0 (diff)
downloadfork-ledger-84f3a3b6ab27c6de03e7460a51def508a16a9c6e.tar.gz
fork-ledger-84f3a3b6ab27c6de03e7460a51def508a16a9c6e.tar.bz2
fork-ledger-84f3a3b6ab27c6de03e7460a51def508a16a9c6e.zip
Include contrib files in distribution
-rw-r--r--CMakeLists.txt1
-rw-r--r--contrib/CMakeLists.txt10
2 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f2848287..c6afcd7b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -321,6 +321,7 @@ endif()
add_subdirectory(src)
add_subdirectory(doc)
+add_subdirectory(contrib)
add_subdirectory(test)
########################################################################
diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt
new file mode 100644
index 00000000..75b9b614
--- /dev/null
+++ b/contrib/CMakeLists.txt
@@ -0,0 +1,10 @@
+include(GNUInstallDirs)
+
+if(CMAKE_INSTALL_DATAROOTDIR)
+
+ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}"
+ USE_SOURCE_PERMISSIONS
+ PATTERN CMakeLists.txt EXCLUDE)
+
+endif(CMAKE_INSTALL_DATAROOTDIR)