Skip to content
Snippets Groups Projects
Commit 620557cc authored by Andreas Schuh's avatar Andreas Schuh
Browse files

Install Bash completion script.

parent 5564469b
No related branches found
No related tags found
No related merge requests found
...@@ -137,10 +137,12 @@ add_library (gflags ${GFLAGS_SRCS}) ...@@ -137,10 +137,12 @@ add_library (gflags ${GFLAGS_SRCS})
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# installation # installation
if (WIN32) if (WIN32)
set (RUNTIME_INSTALL_DIR Bin)
set (LIBRARY_INSTALL_DIR Lib) set (LIBRARY_INSTALL_DIR Lib)
set (INCLUDE_INSTALL_DIR Include) set (INCLUDE_INSTALL_DIR Include)
set (CONFIG_INSTALL_DIR CMake) set (CONFIG_INSTALL_DIR CMake)
else () else ()
set (RUNTIME_INSTALL_DIR bin)
set (LIBRARY_INSTALL_DIR lib) set (LIBRARY_INSTALL_DIR lib)
set (INCLUDE_INSTALL_DIR include) set (INCLUDE_INSTALL_DIR include)
set (CONFIG_INSTALL_DIR lib/cmake/${PACKAGE_NAME}) set (CONFIG_INSTALL_DIR lib/cmake/${PACKAGE_NAME})
...@@ -166,6 +168,10 @@ install ( ...@@ -166,6 +168,10 @@ install (
install (EXPORT gflags-lib DESTINATION ${CONFIG_INSTALL_DIR} FILE ${PACKAGE_NAME}-export.cmake) install (EXPORT gflags-lib DESTINATION ${CONFIG_INSTALL_DIR} FILE ${PACKAGE_NAME}-export.cmake)
if (UNIX)
install (PROGRAMS src/gflags_completions.sh DESTINATION ${RUNTIME_INSTALL_DIR})
endif ()
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# support direct use of build tree # support direct use of build tree
set (INSTALL_PREFIX_REL2CONFIG_DIR .) set (INSTALL_PREFIX_REL2CONFIG_DIR .)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment