-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathdependencies.cmake
More file actions
42 lines (35 loc) · 903 Bytes
/
dependencies.cmake
File metadata and controls
42 lines (35 loc) · 903 Bytes
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
34
35
36
37
38
39
40
41
42
# Project dependencies
find_package(PkgConfig REQUIRED)
find_package(Threads REQUIRED)
find_package(Atomic REQUIRED)
if (ENABLE_UNWIND)
find_package(Unwind REQUIRED)
endif()
if (ENABLE_OUTPUT_LZ4)
find_package(LZ4 REQUIRED)
endif()
find_package(OpenSSL REQUIRED)
if (ENABLE_INPUT_PCAP)
pkg_check_modules(PCAP REQUIRED libpcap)
endif()
if (ENABLE_INPUT_DPDK)
pkg_check_modules(DPDK REQUIRED libdpdk)
endif()
if (ENABLE_INPUT_NFB)
find_package(NFB REQUIRED)
find_package(NUMA REQUIRED)
endif()
if (ENABLE_OUTPUT_UNIREC OR ENABLE_NEMEA)
find_package(LIBTRAP REQUIRED)
find_package(UNIREC REQUIRED)
endif()
if (ENABLE_TESTS)
execute_process(
COMMAND rpm -q nemea-modules
RESULT_VARIABLE NEMEA_INSTALLED
OUTPUT_QUIET ERROR_QUIET
)
if (NOT NEMEA_INSTALLED EQUAL 0)
message(FATAL_ERROR "NEMEA modules package is missing! Install it using: dnf install nemea-modules")
endif()
endif()