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:
11
libssh-config.cmake.in
Normal file
11
libssh-config.cmake.in
Normal 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)
|
Reference in New Issue
Block a user