diff options
Diffstat (limited to 'src/fluent-bit/lib/librdkafka-2.1.0/examples/CMakeLists.txt')
-rw-r--r-- | src/fluent-bit/lib/librdkafka-2.1.0/examples/CMakeLists.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/fluent-bit/lib/librdkafka-2.1.0/examples/CMakeLists.txt b/src/fluent-bit/lib/librdkafka-2.1.0/examples/CMakeLists.txt new file mode 100644 index 000000000..bbbb89ad9 --- /dev/null +++ b/src/fluent-bit/lib/librdkafka-2.1.0/examples/CMakeLists.txt @@ -0,0 +1,40 @@ +if(WIN32) + set(win32_sources ../win32/wingetopt.c ../win32/wingetopt.h) +endif(WIN32) + +add_executable(producer producer.c ${win32_sources}) +target_link_libraries(producer PUBLIC rdkafka) + +add_executable(producer_cpp producer.cpp ${win32_sources}) +target_link_libraries(producer_cpp PUBLIC rdkafka++) + +add_executable(consumer consumer.c ${win32_sources}) +target_link_libraries(consumer PUBLIC rdkafka) + +add_executable(rdkafka_performance rdkafka_performance.c ${win32_sources}) +target_link_libraries(rdkafka_performance PUBLIC rdkafka) + +add_executable(rdkafka_example_cpp rdkafka_example.cpp ${win32_sources}) +target_link_libraries(rdkafka_example_cpp PUBLIC rdkafka++) + +add_executable(rdkafka_complex_consumer_example_cpp rdkafka_complex_consumer_example.cpp ${win32_sources}) +target_link_libraries(rdkafka_complex_consumer_example_cpp PUBLIC rdkafka++) + +add_executable(openssl_engine_example_cpp openssl_engine_example.cpp ${win32_sources}) +target_link_libraries(openssl_engine_example_cpp PUBLIC rdkafka++) + +add_executable(misc misc.c ${win32_sources}) +target_link_libraries(misc PUBLIC rdkafka) + + +# The targets below has Unix include dirs and do not compile on Windows. +if(NOT WIN32) + add_executable(rdkafka_example rdkafka_example.c) + target_link_libraries(rdkafka_example PUBLIC rdkafka) + + add_executable(rdkafka_complex_consumer_example rdkafka_complex_consumer_example.c) + target_link_libraries(rdkafka_complex_consumer_example PUBLIC rdkafka) + + add_executable(kafkatest_verifiable_client kafkatest_verifiable_client.cpp) + target_link_libraries(kafkatest_verifiable_client PUBLIC rdkafka++) +endif(NOT WIN32) |