Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add config for cmake to bash-completion.
This will allow projects using cmake to get information about
bash-completion. This works much like pkg-config files.
  • Loading branch information
GArik committed Mar 19, 2012
1 parent 199a63b commit f523a45
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bash-completion-config-version.cmake.in
@@ -0,0 +1,7 @@
set (PACKAGE_VERSION "@VERSION@")
if (NOT ${PACKAGE_FIND_VERSION} VERSION_GREATER ${PACKAGE_VERSION})
set (PACKAGE_VERSION_COMPATIBLE 1)
if (${PACKAGE_FIND_VERSION} VERSION_EQUAL ${PACKAGE_VERSION})
set (PACKAGE_VERSION_EXACT 1)
endif ()
endif ()
11 changes: 11 additions & 0 deletions bash-completion-config.cmake.in
@@ -0,0 +1,11 @@
# config file for bash-completion
# http://bash-completion.alioth.debian.org/

set (BASH_COMPLETION_VERSION "@VERSION@")

set (BASH_COMPLETION_PREFIX "@prefix@")
set (BASH_COMPLETION_COMPATDIR "@compatdir@")
set (BASH_COMPLETION_COMPLETIONSDIR "@datarootdir@/@PACKAGE@/completions")
set (BASH_COMPLETION_HELPERSDIR "@datarootdir@/@PACKAGE@/helpers")

set (BASH_COMPLETION_FOUND "TRUE")

0 comments on commit f523a45

Please sign in to comment.