diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-06-14 13:47:04 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-06-14 13:47:51 +0200 |
commit | ea84f50603521cb0fcb04033d3d1557604d16a92 (patch) | |
tree | d3fb02d76371bad213319b4e0c2866177e105dda | |
parent | ccc94e7ab62d1a9fb1468a3fa276b12cd9a973ca (diff) | |
download | libssh-ea84f50603521cb0fcb04033d3d1557604d16a92.tar.gz libssh-ea84f50603521cb0fcb04033d3d1557604d16a92.tar.xz libssh-ea84f50603521cb0fcb04033d3d1557604d16a92.zip |
cmake: Added pkg-config support for libssh_treads.
(cherry picked from commit 583a7f933ab6491742035e217d4bff0b38a33b08)
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | libssh_threads.pc.cmake | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d5a2c1a0..665ac57e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/libssh_threads.pc.cmake b/libssh_threads.pc.cmake new file mode 100644 index 00000000..2bbb7f99 --- /dev/null +++ b/libssh_threads.pc.cmake @@ -0,0 +1,5 @@ +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} |