diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-02-12 13:31:42 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-02-12 13:32:34 +0100 |
commit | 5d6cab4b14cc496382166b4fdfdf237621c93f2a (patch) | |
tree | 3d5a4a9efff5a0b0303cf40789193a4d89db3f8d /CMakeLists.txt | |
parent | afe4c92bbff2bd46f5c48e50ccf2af893dc3d51b (diff) | |
download | libssh-5d6cab4b14cc496382166b4fdfdf237621c93f2a.tar.gz libssh-5d6cab4b14cc496382166b4fdfdf237621c93f2a.tar.xz libssh-5d6cab4b14cc496382166b4fdfdf237621c93f2a.zip |
cmake: Add cmake config files for new find_package() mode.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c4830c37..81ac5884 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,6 +89,22 @@ install( pkgconfig ) +# cmake config files +configure_file(libssh-config.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/libssh-config.cmake @ONLY) +configure_file(libssh-config-version.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/libssh-config-version.cmake @ONLY) +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/libssh-config.cmake + ${CMAKE_CURRENT_BINARY_DIR}/libssh-config-version.cmake + DESTINATION + ${CMAKE_INSTALL_DIR} + COMPONENT + devel +) + +# in tree build settings +configure_file(libssh-build-tree-settings.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/libssh-build-tree-settings.cmake @ONLY) + add_subdirectory(examples) if (WITH_TESTING) |