mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-01 11:07:56 +00:00
Merge pull request #199 from accelerated/pc_config
Removed dependency from rdkafka since it has its own pkg_config file.…
This commit is contained in:
@@ -38,6 +38,15 @@ option(CPPKAFKA_BOOST_STATIC_LIBS "Link with Boost static libraries." ON)
|
||||
option(CPPKAFKA_BOOST_USE_MULTITHREADED "Use Boost multithreaded libraries." ON)
|
||||
option(CPPKAFKA_RDKAFKA_STATIC_LIB "Link with Rdkafka static library." OFF)
|
||||
|
||||
math(EXPR BITS "8*${CMAKE_SIZEOF_VOID_P}")
|
||||
|
||||
# Properly set the output directory
|
||||
if (${BITS} EQUAL 64)
|
||||
set(LIBDIR "lib64")
|
||||
else()
|
||||
set(LIBDIR "lib")
|
||||
endif()
|
||||
|
||||
# Disable output from find_package macro
|
||||
if (NOT CPPKAFKA_CMAKE_VERBOSE)
|
||||
set(FIND_PACKAGE_QUIET QUIET)
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
exec_prefix=${prefix}
|
||||
libdir=${prefix}/lib
|
||||
sharedlibdir=${prefix}/lib
|
||||
libdir=${prefix}/@LIBDIR@
|
||||
sharedlibdir=${prefix}/@LIBDIR@
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: cppkafka
|
||||
Url: https://github.com/mfontanini/cppkafka
|
||||
Description: C++ wrapper library on top of RdKafka
|
||||
Version: @CPPKAFKA_VERSION@
|
||||
Requires: rdkafka >= 0.9.4 boost
|
||||
Requires.private:
|
||||
Libs: -L${libdir} -L${sharedlibdir} -L@RDKAFKA_ROOT_DIR@/lib -lcppkafka -lrdkafka -lpthread -lrt -lssl -lcrypto -ldl -lz
|
||||
Cflags: -I${includedir} -I${includedir}/cppkafka -I@RDKAFKA_INCLUDE_DIR@ -I@Boost_INCLUDE_DIRS@
|
||||
Requires:
|
||||
Requires.private: rdkafka >= 0.9.4, boost
|
||||
Libs: -L${libdir} -L${sharedlibdir} -lcppkafka
|
||||
Cflags: -I${includedir} -I${includedir}/cppkafka
|
||||
|
||||
@@ -43,8 +43,8 @@ target_include_directories(cppkafka PUBLIC ${PROJECT_SOURCE_DIR}/include)
|
||||
|
||||
install(
|
||||
TARGETS cppkafka
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION ${LIBDIR}
|
||||
ARCHIVE DESTINATION ${LIBDIR}
|
||||
COMPONENT dev
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user