mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00

By default, OS X 10.11 does not include openssl headers. Since building a Bro plugin #includes Bro headers, which #include openssl headers, we need to tell cmake to find these so that the compiler can use them.
22 lines
473 B
CMake
22 lines
473 B
CMake
|
|
project(Bro-Plugin-Demo-Foo)
|
|
|
|
cmake_minimum_required(VERSION 2.6.3)
|
|
|
|
if ( NOT BRO_DIST )
|
|
message(FATAL_ERROR "BRO_DIST not set")
|
|
endif ()
|
|
|
|
set(CMAKE_MODULE_PATH ${BRO_DIST}/cmake)
|
|
|
|
find_package(OpenSSL)
|
|
include_directories(${OPENSSL_INCLUDE_DIR})
|
|
|
|
include(BroPlugin)
|
|
|
|
bro_plugin_begin(Demo Foo)
|
|
bro_plugin_cc(src/Plugin.cc)
|
|
bro_plugin_cc(src/Foo.cc)
|
|
bro_plugin_bif(src/events.bif)
|
|
bro_plugin_pac(src/foo.pac src/foo-protocol.pac src/foo-analyzer.pac)
|
|
bro_plugin_end()
|