Add pkg-config file libssh.pc

Signed-off-by: Vic Lee <llyzs@163.com>
Signed-off-by: Andreas Schneider <mail@cynapses.org>
This commit is contained in:
Vic Lee 2009-12-30 13:34:17 +08:00 committed by Andreas Schneider
parent 1944dc8b5f
commit 13d534e89a
2 changed files with 17 additions and 0 deletions

View File

@ -66,6 +66,17 @@ add_subdirectory(tests)
# build samples
include_directories(${CMAKE_SOURCE_DIR}/include)
# pkg-config file
configure_file(libssh.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libssh.pc)
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/libssh.pc
DESTINATION
${LIB_INSTALL_DIR}/pkgconfig
COMPONENT
pkgconfig
)
if (UNIX AND NOT WIN32)
add_subdirectory(examples)

6
libssh.pc.cmake Normal file
View File

@ -0,0 +1,6 @@
Name: ${APPLICATION_NAME}
Description: The SSH Library
Version: ${APPLICATION_VERSION}
Libs: -L${LIB_INSTALL_DIR} -lssh
Cflags: -I${INCLUDE_INSTALL_DIR}