pkgconfig.in: allow a module to specify dependencies on another module

This patch adds the

Requires: @reqlibname@

and

Requires.private: @reqplibname@

clauses to the src/pkgconfig.in file.

This allows a UPM module to declare a dependency on another module
with a line of the form:

set (reqlibname "upm-somelib")
and/or
set (reqplibname "upm-somelib")

to the CMakeLists.txt file.

Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Jon Trulson 2015-03-06 12:53:15 -07:00 committed by Mihai Tudor Panu
parent 92615f0637
commit 3810e7f2cb

View File

@ -9,3 +9,6 @@ Version: @upm_VERSION_STRING@
Libs: -L${libdir} -lupm-@libname@
Cflags: -I${includedir}/upm
Requires: @reqlibname@
Requires.private: @reqplibname@