Skip to content

Commit

Permalink
Adds pkg-config support for libhpack
Browse files Browse the repository at this point in the history
  • Loading branch information
alobbs committed Apr 24, 2014
1 parent 1229d87 commit 83ea55a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libhpack/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,10 @@ install (
FILES ${hpack_HDRS}
DESTINATION include/libhpack
)

# libhpack.pc
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libhpack.pc.in
${CMAKE_CURRENT_BINARY_DIR}/libhpack.pc @ONLY)

install (FILES ${CMAKE_CURRENT_BINARY_DIR}/libhpack.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
12 changes: 12 additions & 0 deletions libhpack/libhpack.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/libhpack

Name: libhpack
Description: HPACK library
Version: @hpack_VERSION@
Requires: libchula
Libs: -L${libdir} -lhpack
Libs.private: @LIBS@
Cflags: -I${includedir}

0 comments on commit 83ea55a

Please sign in to comment.