Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / plugins / epan / falco_bridge / CMakeLists.txt
blob587111c76ac46e2af5016341019de22545d84539
1 # CMakeLists.txt
3 # Wireshark - Network traffic analyzer
4 # By Gerald Combs <gerald@wireshark.org>
5 # Copyright 1998 Gerald Combs
7 # SPDX-License-Identifier: GPL-2.0-or-later
10 include(WiresharkPlugin)
12 # Plugin name and version info (major minor micro extra)
13 set_module_info(falco-bridge 0 0 4 0)
15 set(DISSECTOR_SRC
16         packet-falco-bridge.c
17         sinsp-span.cpp
20 set(DISSECTOR_HEADERS
21         sinsp-span.h
24 set(PLUGIN_FILES
25         plugin.c
26         ${DISSECTOR_SRC}
29 set_source_files_properties(
30         ${PLUGIN_FILES}
31         PROPERTIES
32         COMPILE_FLAGS "${WERROR_COMMON_FLAGS}"
35 register_plugin_files(plugin.c
36         plugin
37         ${DISSECTOR_SRC}
40 add_stratoshark_plugin_library(falco-bridge epan)
42 # XXX Hacks; need to fix in falcosecurity-libs.
43 target_compile_definitions(falco-bridge PRIVATE
44         HAVE_STRLCPY=1
45         )
46 # target_compile_options(falco-bridge PRIVATE -Wno-address-of-packed-member)
48 target_include_directories(falco-bridge SYSTEM PRIVATE
49         ${SINSP_INCLUDE_DIRS}
52 if(WIN32)
53         # libsinsp/dumper.h includes libscap/scap_savefile_api.h, which includes
54         # libscap/scap_zlib.h.
55         target_include_directories(falco-bridge SYSTEM PRIVATE ${ZLIB_INCLUDE_DIR})
56 endif()
58 target_link_libraries(falco-bridge
59         epan
60         ${SINSP_LINK_LIBRARIES}
63 install_plugin(falco-bridge epan)
65 CHECKAPI(
66         NAME
67           falco-bridge
68         SWITCHES
69           --group dissectors-prohibited
70           --group dissectors-restricted
71         SOURCES
72           ${DISSECTOR_SRC}
73           ${DISSECTOR_HEADERS}
77 # Editor modelines  -  https://www.wireshark.org/tools/modelines.html
79 # Local variables:
80 # c-basic-offset: 8
81 # tab-width: 8
82 # indent-tabs-mode: t
83 # End:
85 # vi: set shiftwidth=8 tabstop=8 noexpandtab:
86 # :indentSize=8:tabSize=8:noTabs=false: