mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-03 03:58:04 +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_BOOST_USE_MULTITHREADED "Use Boost multithreaded libraries." ON)
|
||||||
option(CPPKAFKA_RDKAFKA_STATIC_LIB "Link with Rdkafka static library." OFF)
|
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
|
# Disable output from find_package macro
|
||||||
if (NOT CPPKAFKA_CMAKE_VERBOSE)
|
if (NOT CPPKAFKA_CMAKE_VERBOSE)
|
||||||
set(FIND_PACKAGE_QUIET QUIET)
|
set(FIND_PACKAGE_QUIET QUIET)
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
prefix=@CMAKE_INSTALL_PREFIX@
|
prefix=@CMAKE_INSTALL_PREFIX@
|
||||||
exec_prefix=${prefix}
|
exec_prefix=${prefix}
|
||||||
libdir=${prefix}/lib
|
libdir=${prefix}/@LIBDIR@
|
||||||
sharedlibdir=${prefix}/lib
|
sharedlibdir=${prefix}/@LIBDIR@
|
||||||
includedir=${prefix}/include
|
includedir=${prefix}/include
|
||||||
|
|
||||||
Name: cppkafka
|
Name: cppkafka
|
||||||
Url: https://github.com/mfontanini/cppkafka
|
Url: https://github.com/mfontanini/cppkafka
|
||||||
Description: C++ wrapper library on top of RdKafka
|
Description: C++ wrapper library on top of RdKafka
|
||||||
Version: @CPPKAFKA_VERSION@
|
Version: @CPPKAFKA_VERSION@
|
||||||
Requires: rdkafka >= 0.9.4 boost
|
Requires:
|
||||||
Requires.private:
|
Requires.private: rdkafka >= 0.9.4, boost
|
||||||
Libs: -L${libdir} -L${sharedlibdir} -L@RDKAFKA_ROOT_DIR@/lib -lcppkafka -lrdkafka -lpthread -lrt -lssl -lcrypto -ldl -lz
|
Libs: -L${libdir} -L${sharedlibdir} -lcppkafka
|
||||||
Cflags: -I${includedir} -I${includedir}/cppkafka -I@RDKAFKA_INCLUDE_DIR@ -I@Boost_INCLUDE_DIRS@
|
Cflags: -I${includedir} -I${includedir}/cppkafka
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ target_include_directories(cppkafka PUBLIC ${PROJECT_SOURCE_DIR}/include)
|
|||||||
|
|
||||||
install(
|
install(
|
||||||
TARGETS cppkafka
|
TARGETS cppkafka
|
||||||
LIBRARY DESTINATION lib
|
LIBRARY DESTINATION ${LIBDIR}
|
||||||
ARCHIVE DESTINATION lib
|
ARCHIVE DESTINATION ${LIBDIR}
|
||||||
COMPONENT dev
|
COMPONENT dev
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user