mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 12:59:07 +08:00
4345d72752
* [modern-cpp-kafka] New port * update version database * fix dependencies * update version database * change header install path * update version database
28 lines
857 B
CMake
28 lines
857 B
CMake
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
|
|
|
|
project(modern-cpp-kafka LANGUAGES CXX)
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
find_package(RdKafka CONFIG REQUIRED)
|
|
find_package(Boost REQUIRED)
|
|
find_package(RapidJSON CONFIG REQUIRED)
|
|
|
|
add_library(modern-cpp-kafka INTERFACE)
|
|
target_include_directories(modern-cpp-kafka INTERFACE $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
|
target_link_libraries(modern-cpp-kafka INTERFACE RdKafka::rdkafka Boost::boost rapidjson)
|
|
|
|
install(TARGETS modern-cpp-kafka EXPORT unofficial-modern-cpp-kafka)
|
|
|
|
install(
|
|
EXPORT unofficial-modern-cpp-kafka
|
|
FILE unofficial-modern-cpp-kafka-config.cmake
|
|
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/unofficial-modern-cpp-kafka"
|
|
NAMESPACE unofficial::modern-cpp-kafka::
|
|
)
|
|
|
|
install(
|
|
DIRECTORY "${CMAKE_SOURCE_DIR}/include/kafka"
|
|
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
|
|
)
|