Asciidoctor macro fixups.
[metze/wireshark/wip.git] / plugins / epan / docsis / CMakeLists.txt
1 # CMakeLists.txt
2 #
3 # Wireshark - Network traffic analyzer
4 # By Gerald Combs <gerald@wireshark.org>
5 # Copyright 1998 Gerald Combs
6 #
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
9 # as published by the Free Software Foundation; either version 2
10 # of the License, or (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21
22 include(WiresharkPlugin)
23
24 # Plugin name and version info (major minor micro extra)
25 set_module_info(docsis 0 0 5 0)
26
27 # The sources for the plugin
28 set(DISSECTOR_SRC
29         packet-docsis.c
30         packet-macmgmt.c
31         packet-tlv.c
32         packet-vendor.c
33 )
34
35 set(PLUGIN_FILES
36         plugin.c
37         ${DISSECTOR_SRC}
38 )
39
40 set(CLEAN_FILES
41         ${PLUGIN_FILES}
42 )
43
44 set_source_files_properties(
45         ${CLEAN_FILES}
46         PROPERTIES
47         COMPILE_FLAGS "${WERROR_COMMON_FLAGS}"
48 )
49
50 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
51
52 register_plugin_files(plugin.c
53         plugin
54         ${DISSECTOR_SRC}
55 )
56
57 add_plugin_library(docsis epan)
58
59 target_link_libraries(docsis epan)
60
61 install_plugin(docsis epan)
62
63 file(GLOB DISSECTOR_HEADERS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*.h")
64 CHECKAPI(
65         NAME
66           docsis
67         SWITCHES
68           -g abort -g termoutput -build
69         SOURCES
70           ${DISSECTOR_SRC}
71           ${DISSECTOR_HEADERS}
72 )
73
74 #
75 # Editor modelines  -  http://www.wireshark.org/tools/modelines.html
76 #
77 # Local variables:
78 # c-basic-offset: 8
79 # tab-width: 8
80 # indent-tabs-mode: t
81 # End:
82 #
83 # vi: set shiftwidth=8 tabstop=8 noexpandtab:
84 # :indentSize=8:tabSize=8:noTabs=false:
85 #