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

Commit

Permalink
Add proper pkgconfig support valid both during build phase and after …
Browse files Browse the repository at this point in the history
…installation
  • Loading branch information
adevress committed Dec 6, 2018
1 parent d492572 commit 4b85e42
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 4b85e42

Please sign in to comment.