2847468e54c1a69e2e93a76a382effcbdf3d5b2b
[obnox/wireshark/wip.git] / plugins / docsis / CMakeLists.txt
1 # CMakeLists.txt
2 #
3 # $Id$
4 #
5 # Wireshark - Network traffic analyzer
6 # By Gerald Combs <gerald@wireshark.org>
7 # Copyright 1998 Gerald Combs
8 #
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License
11 # as published by the Free Software Foundation; either version 2
12 # of the License, or (at your option) any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 #
23
24 set(DISSECTOR_SRC
25         packet-bintrngreq.c
26         packet-bpkmattr.c
27         packet-bpkmreq.c
28         packet-bpkmrsp.c
29         packet-intrngreq.c
30         packet-dccack.c
31         packet-dccreq.c
32         packet-dccrsp.c
33         packet-dcd.c
34         packet-docsis.c
35         packet-dsaack.c
36         packet-dsareq.c
37         packet-dsarsp.c
38         packet-dscack.c
39         packet-dscreq.c
40         packet-dscrsp.c
41         packet-dsdreq.c
42         packet-dsdrsp.c
43         packet-macmgmt.c
44         packet-map.c
45         packet-mdd.c
46         packet-regack.c
47         packet-regreq.c
48         packet-regreqmp.c
49         packet-regrsp.c
50         packet-regrspmp.c
51         packet-rngreq.c
52         packet-rngrsp.c
53         packet-sync.c
54         packet-tlv.c
55         packet-type29ucd.c
56         packet-uccreq.c
57         packet-uccrsp.c
58         packet-ucd.c
59         packet-vendor.c
60 )
61
62 set(PLUGIN_FILES
63         plugin.c
64         ${DISSECTOR_SRC}
65 )
66
67 set(CLEAN_FILES
68         ${PLUGIN_FILES}
69 )
70
71 if (WERROR)
72         set_source_files_properties(
73                 ${CLEAN_FILES}
74                 PROPERTIES
75                 COMPILE_FLAGS -Werror
76         )
77 endif()
78
79 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
80
81 register_dissector_files(plugin.c
82         plugin
83         ${DISSECTOR_SRC}
84 )
85
86 add_library(docsis ${LINK_MODE_MODULE}
87         ${PLUGIN_FILES}
88 )
89 set_target_properties(docsis PROPERTIES PREFIX "")
90 #set_target_properties(docsis PROPERTIES SOVERSION ${CPACK_PACKAGE_VERSION})
91
92
93 target_link_libraries(docsis epan)
94
95 install(TARGETS docsis
96         LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
97         RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
98         ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}
99 )
100