-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
33 lines (24 loc) · 894 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
cmake_minimum_required(VERSION 2.8)
project(BroPluginUAP)
include(BroPlugin)
find_package(yaml-cpp REQUIRED)
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.58.0 COMPONENTS regex REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
bro_plugin_begin(VR UAP)
bro_plugin_cc(src/Plugin.cc)
bro_plugin_bif(src/uap.bif)
bro_plugin_bif(src/types.bif)
bro_plugin_cc(src/UaParser.cpp)
bro_plugin_link_library(${Boost_LIBRARIES})
bro_plugin_link_library(${YAML_CPP_LIBRARIES})
bro_plugin_dist_files(README.md COPYING VERSION)
bro_plugin_end()
file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" VERSION LIMIT_COUNT 1)
if ("${PROJECT_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
# Allows building rpm/deb packages via "make package" in build dir.
include(ConfigurePackaging)
ConfigurePackaging(${VERSION})
endif ()