Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #45 from adevress/master
Browse files Browse the repository at this point in the history
Add pkgconfig support
  • Loading branch information
Jeffail authored Dec 6, 2018
2 parents d492572 + 4b85e42 commit 757172e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ FOREACH (CONFIGINPUT ${CONFIGINPUTS})
CONFIGURE_FILE ("${CONFIGINPUT}" "${CONFIGOUTPUT}")
ENDFOREACH (CONFIGINPUT ${CONFIGINPUTS})

#
# pkg-config file generator
#
CONFIGURE_FILE("install/pkgconfig/served.pc.in" "${LIBRARY_OUTPUT_PATH}/pkgconfig/served.pc" @ONLY)
INSTALL(FILES "${LIBRARY_OUTPUT_PATH}/pkgconfig/served.pc" DESTINATION lib/pkgconfig )

#
# Add Build Targets
#
Expand Down
11 changes: 11 additions & 0 deletions install/pkgconfig/served.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prefix=${pcfiledir}/../../
libdir=${pcfiledir}/../
includedir=${prefix}/include

Name: served
Description: @APPLICATION_NAME@
URL: https://github.com/meltwater/served
Version: @APPLICATION_VERSION_STRING@
Cflags: -I${includedir}
Libs: -L${libdir} -lserved

0 comments on commit 757172e

Please sign in to comment.