Add CMake configuration file and export installed targets

This commit is contained in:
Alexander Damian
2019-06-27 17:37:33 -04:00
parent 07b3c4957d
commit d20cab69f3
12 changed files with 213 additions and 78 deletions

14
cmake/cppkafka.pc.in Normal file
View File

@@ -0,0 +1,14 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
sharedlibdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
includedir=${prefix}/include
Name: cppkafka
Url: https://github.com/mfontanini/cppkafka
Description: C++ wrapper library on top of RdKafka
Version: @CPPKAFKA_VERSION@
Requires:
Requires.private: rdkafka >= 0.9.4, boost
Libs: -L${libdir} -L${sharedlibdir} -lcppkafka
Cflags: -I${includedir} -I${includedir}/cppkafka