mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
40 lines
1.3 KiB
CMake
40 lines
1.3 KiB
CMake
@PACKAGE_INIT@
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
# Note: ZeekPluginConfig only exists on the build interface to pull in
|
|
# additional variables and dependencies for building dynamic plugins.
|
|
if ( EXISTS "${CMAKE_CURRENT_LIST_DIR}/ZeekPluginConfig.cmake" )
|
|
include("${CMAKE_CURRENT_LIST_DIR}/ZeekPluginConfig.cmake")
|
|
endif ()
|
|
|
|
set(CMAKE_THREAD_PREFER_PTHREAD ON)
|
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
find_dependency(Threads REQUIRED)
|
|
|
|
# Find OpenSSL and Forward hints from Zeek's build config.
|
|
set(ZeekOpenSSLHint "@ZeekOpenSSLHint@")
|
|
if (ZeekOpenSSLHint AND NOT OPENSSL_ROOT_DIR)
|
|
set(OPENSSL_ROOT_DIR "${ZeekOpenSSLHint}" CACHE
|
|
PATH "Directory hint for finding OpenSSL" FORCE)
|
|
endif ()
|
|
find_dependency(OpenSSL REQUIRED)
|
|
|
|
# In our MSVC build, we have these extra dependencies from Conan.
|
|
if ( MSVC )
|
|
find_dependency(libpcap)
|
|
find_dependency(ZLIB)
|
|
find_dependency(c-ares)
|
|
endif ()
|
|
|
|
if ( NOT "@ZEEK_HAS_STATIC_BROKER@" )
|
|
# Always force using the package config file since users might still have
|
|
# a legacy FindBroker.cmake in their system.
|
|
find_dependency(Broker REQUIRED CONFIG)
|
|
endif ()
|
|
|
|
foreach ( dep @ZEEK_INSTALL_DEPENDENCIES@ )
|
|
find_dependency(${dep} REQUIRED)
|
|
endforeach ( )
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/ZeekTargets.cmake")
|