cmake: Added pkg-config support for libssh_treads.

This commit is contained in:
Andreas Schneider 2011-06-14 13:47:04 +02:00
parent 2653b31af0
commit 583a7f933a
2 changed files with 8 additions and 0 deletions

View File

@ -78,9 +78,11 @@ add_subdirectory(src)
# pkg-config file
configure_file(libssh.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libssh.pc)
configure_file(libssh_threads.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libssh_threads.pc)
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/libssh.pc
${CMAKE_CURRENT_BINARY_DIR}/libssh_threads.pc
DESTINATION
${LIB_INSTALL_DIR}/pkgconfig
COMPONENT

6
libssh_threads.pc.cmake Normal file
View File

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