Skip to content
Browse files

Add pkg-config file libssh.pc

Signed-off-by: Vic Lee <llyzs@163.com>
Signed-off-by: Andreas Schneider <mail@cynapses.org>
  • Loading branch information...
1 parent 1944dc8 commit 13d534e89a44239f743eeaa63dbec47a13798bb7 @llyzs llyzs committed with Andreas Schneider
Showing with 17 additions and 0 deletions.
  1. +11 −0 CMakeLists.txt
  2. +6 −0 libssh.pc.cmake
View
11 CMakeLists.txt
@@ -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)
View
6 libssh.pc.cmake
@@ -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}
+

0 comments on commit 13d534e

Please sign in to comment.
Something went wrong with that request. Please try again.