2009-09-16 06:30:03 +00:00
|
|
|
# CMakeLists.txt
|
|
|
|
#
|
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
|
|
# Copyright 1998 Gerald Combs
|
|
|
|
#
|
2018-03-06 14:31:02 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2009-09-16 06:30:03 +00:00
|
|
|
#
|
|
|
|
|
2015-01-18 21:27:13 +00:00
|
|
|
include(WiresharkPlugin)
|
2015-01-10 21:29:57 +00:00
|
|
|
|
2015-11-23 21:51:47 +00:00
|
|
|
# Plugin name and version info (major minor micro extra)
|
2015-01-18 21:27:13 +00:00
|
|
|
set_module_info(ethercat 0 1 0 0)
|
2015-01-10 21:29:57 +00:00
|
|
|
|
2009-09-16 06:30:03 +00:00
|
|
|
set(DISSECTOR_SRC
|
|
|
|
packet-ams.c
|
|
|
|
packet-ecatmb.c
|
|
|
|
packet-esl.c
|
|
|
|
packet-ethercat-datagram.c
|
|
|
|
packet-ethercat-frame.c
|
|
|
|
packet-ioraw.c
|
|
|
|
packet-nv.c
|
|
|
|
)
|
|
|
|
|
|
|
|
set(PLUGIN_FILES
|
|
|
|
plugin.c
|
|
|
|
${DISSECTOR_SRC}
|
|
|
|
)
|
|
|
|
|
2016-09-30 14:06:15 +00:00
|
|
|
set_source_files_properties(
|
2018-02-17 02:22:31 +00:00
|
|
|
${PLUGIN_FILES}
|
2016-09-30 14:06:15 +00:00
|
|
|
PROPERTIES
|
|
|
|
COMPILE_FLAGS "${WERROR_COMMON_FLAGS}"
|
|
|
|
)
|
2009-11-07 10:07:00 +00:00
|
|
|
|
2009-09-16 06:30:03 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
2017-11-20 19:58:46 +00:00
|
|
|
register_plugin_files(plugin.c
|
2009-10-09 16:39:34 +00:00
|
|
|
plugin
|
|
|
|
${DISSECTOR_SRC}
|
2009-09-16 06:30:03 +00:00
|
|
|
)
|
|
|
|
|
2017-09-30 23:56:03 +00:00
|
|
|
add_plugin_library(ethercat epan)
|
2009-10-06 18:58:09 +00:00
|
|
|
|
2018-02-04 01:22:09 +00:00
|
|
|
target_link_libraries(ethercat epan)
|
|
|
|
|
2017-09-30 23:56:03 +00:00
|
|
|
install_plugin(ethercat epan)
|
2016-03-11 19:51:39 +00:00
|
|
|
|
|
|
|
file(GLOB DISSECTOR_HEADERS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*.h")
|
|
|
|
CHECKAPI(
|
|
|
|
NAME
|
|
|
|
ethercat
|
|
|
|
SWITCHES
|
|
|
|
-g abort -g termoutput -build
|
|
|
|
SOURCES
|
|
|
|
${DISSECTOR_SRC}
|
|
|
|
${DISSECTOR_HEADERS}
|
|
|
|
)
|
2016-09-30 14:06:15 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Editor modelines - http://www.wireshark.org/tools/modelines.html
|
|
|
|
#
|
|
|
|
# Local variables:
|
|
|
|
# c-basic-offset: 8
|
|
|
|
# tab-width: 8
|
|
|
|
# indent-tabs-mode: t
|
|
|
|
# End:
|
|
|
|
#
|
|
|
|
# vi: set shiftwidth=8 tabstop=8 noexpandtab:
|
|
|
|
# :indentSize=8:tabSize=8:noTabs=false:
|
|
|
|
#
|