aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/DefineInstallationPaths.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-02-12 13:31:42 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-02-12 13:32:34 +0100
commit5d6cab4b14cc496382166b4fdfdf237621c93f2a (patch)
tree3d5a4a9efff5a0b0303cf40789193a4d89db3f8d /cmake/Modules/DefineInstallationPaths.cmake
parentafe4c92bbff2bd46f5c48e50ccf2af893dc3d51b (diff)
downloadlibssh-5d6cab4b14cc496382166b4fdfdf237621c93f2a.tar.gz
libssh-5d6cab4b14cc496382166b4fdfdf237621c93f2a.tar.xz
libssh-5d6cab4b14cc496382166b4fdfdf237621c93f2a.zip
cmake: Add cmake config files for new find_package() mode.
Diffstat (limited to 'cmake/Modules/DefineInstallationPaths.cmake')
-rw-r--r--cmake/Modules/DefineInstallationPaths.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/Modules/DefineInstallationPaths.cmake b/cmake/Modules/DefineInstallationPaths.cmake
index d857871e..7e22f611 100644
--- a/cmake/Modules/DefineInstallationPaths.cmake
+++ b/cmake/Modules/DefineInstallationPaths.cmake
@@ -4,6 +4,7 @@ if (WIN32)
set(SBIN_INSTALL_DIR "." CACHE PATH "-")
set(LIB_INSTALL_DIR "lib" CACHE PATH "-")
set(INCLUDE_INSTALL_DIR "include" CACHE PATH "-")
+ set(CMAKE_INSTALL_DIR "CMake" CACHE PATH "-")
set(PLUGIN_INSTALL_DIR "plugins" CACHE PATH "-")
set(HTML_INSTALL_DIR "doc/HTML" CACHE PATH "-")
set(ICON_INSTALL_DIR "." CACHE PATH "-")
@@ -58,6 +59,10 @@ elseif (UNIX OR OS2)
CACHE PATH "The subdirectory to the header prefix (default prefix/include)"
)
+ set(CMAKE_INSTALL_DIR
+ "${LIB_INSTALL_DIR}/cmake"
+ CACHE PATH "The subdirectory to install cmake config files")
+
SET(DATA_INSTALL_DIR
"${DATA_INSTALL_PREFIX}"
CACHE PATH "The parent directory where applications can install their data (default prefix/share/${APPLICATION_NAME})"