1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-29 13:01:13 +03:00

cmake: Add cmake config files for new find_package() mode.

This commit is contained in:
Andreas Schneider
2013-02-12 13:31:42 +01:00
parent afe4c92bbf
commit 5d6cab4b14
5 changed files with 44 additions and 0 deletions

11
libssh-config.cmake.in Normal file
View File

@ -0,0 +1,11 @@
get_filename_component(LIBSSH_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
if (EXISTS "${LIBSSH_CMAKE_DIR}/CMakeCache.txt")
# In build tree
include(${LIBSSH_CMAKE_DIR}/libssh-build-tree-settings.cmake)
else()
set(LIBSSH_INCLUDE_DIRS @INCLUDE_INSTALL_DIR@)
endif()
set(LIBSSH_LIRBARY @LIB_INSTALL_DIR@/libssh.so)
set(LIBSSH_LIRBARIES @LIB_INSTALL_DIR@/libssh.so)