epan/dissectors/pidl/ C99 drsuapi
[wireshark-sm.git] / plugins / epan / ethercat / CMakeLists.txt
blobafa46e8272c5b1ffa1524f1a7437e579143aa11a
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(ethercat 0 1 0 0)
15 set(DISSECTOR_SRC
16         packet-ams.c
17         packet-ecatmb.c
18         packet-esl.c
19         packet-ethercat-datagram.c
20         packet-ethercat-frame.c
21         packet-ioraw.c
22         packet-nv.c
25 set(PLUGIN_FILES
26         plugin.c
27         ${DISSECTOR_SRC}
30 set_source_files_properties(
31         ${PLUGIN_FILES}
32         PROPERTIES
33         COMPILE_FLAGS "${WERROR_COMMON_FLAGS}"
36 register_plugin_files(plugin.c
37         plugin
38         ${DISSECTOR_SRC}
41 add_wireshark_plugin_library(ethercat epan)
43 target_link_libraries(ethercat epan)
45 install_plugin(ethercat epan)
47 file(GLOB DISSECTOR_HEADERS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*.h")
48 CHECKAPI(
49         NAME
50           ethercat
51         SWITCHES
52           --group dissectors-prohibited
53           --group dissectors-restricted
54         SOURCES
55           ${DISSECTOR_SRC}
56           ${DISSECTOR_HEADERS}
60 # Editor modelines  -  https://www.wireshark.org/tools/modelines.html
62 # Local variables:
63 # c-basic-offset: 8
64 # tab-width: 8
65 # indent-tabs-mode: t
66 # End:
68 # vi: set shiftwidth=8 tabstop=8 noexpandtab:
69 # :indentSize=8:tabSize=8:noTabs=false: