zeek/src/cluster/backend/zeromq/CMakeLists.txt
Arne Welzel 07e23fb95e zeromq: Conditionally enable by default
Instead of having ZeroMQ as a new dependency, enable the ZeroMQ backend only
if ZeroMQ is available on the system as suggested by Tim.
2024-12-10 20:33:02 +01:00

19 lines
402 B
CMake

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
find_package(ZeroMQ REQUIRED)
zeek_add_plugin(
Zeek
Cluster_Backend_ZeroMQ
INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${ZeroMQ_INCLUDE_DIRS}
DEPENDENCIES
${ZeroMQ_LIBRARIES}
SOURCES
Plugin.cc
ZeroMQ-Proxy.cc
ZeroMQ.cc
BIFS
cluster_backend_zeromq.bif)