summaryrefslogtreecommitdiff
path: root/completions/CMakeLists.txt
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-15 12:55:51 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-15 12:55:51 +0200
commit1bb40ea62efc5eafc93d3739c9082e8f7e1a0e53 (patch)
tree339e27bd2cab058bb7c81c921a7fc5286f84df5f /completions/CMakeLists.txt
parent4030a6698e74ca7a7630ef39e50369602f2dd78c (diff)
CMake: Install bash completions via cmake
Having the completions installed only by the packaging was an oversight. Gbp-Dch: ignore
Diffstat (limited to 'completions/CMakeLists.txt')
-rw-r--r--completions/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/completions/CMakeLists.txt b/completions/CMakeLists.txt
new file mode 100644
index 000000000..4ef62a892
--- /dev/null
+++ b/completions/CMakeLists.txt
@@ -0,0 +1,4 @@
+set(BASH_COMPLETION_DIR "${CMAKE_INSTALL_DATAROOTDIR}/bash-completion/completions"
+ CACHE PATH "Path to the bash-completion completions directory")
+
+install(FILES bash/apt DESTINATION ${BASH_COMPLETION_DIR})