Declare opt_cont_buf_len
[obnox/wireshark/wip.git] / wiretap / 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
25 set(WIRETAP_FILES
26         5views.c
27         aethra.c
28         airopeek9.c
29         ascendtext.c
30         atm.c
31         ber.c
32         btsnoop.c
33         buffer.c
34         catapult_dct2000.c
35         commview.c
36         cosine.c
37         csids.c
38         daintree-sna.c
39         dbs-etherwatch.c
40         dct3trace.c
41         erf.c
42         etherpeek.c
43         eyesdn.c
44         file_access.c
45         file_wrappers.c
46         hcidump.c
47         i4btrace.c
48         ipfix.c
49         iptrace.c
50         iseries.c
51         k12.c
52         lanalyzer.c
53         libpcap.c
54         mpeg.c
55         mime_file.c
56         netmon.c
57         netscaler.c
58         netscreen.c
59         nettl.c
60         network_instruments.c
61         netxray.c
62         ngsniffer.c
63         packetlogger.c
64         pcap-common.c
65         pcapng.c
66         pppdump.c
67         radcom.c
68         snoop.c
69         tnef.c
70         toshiba.c
71         visual.c
72         vms.c
73         wtap.c
74 )
75
76 set(CLEAN_FILES
77         ${WIRETAP_FILES}
78 )
79
80 if (WERROR)
81         set_source_files_properties(
82                 ${CLEAN_FILES}
83                 PROPERTIES
84                 COMPILE_FLAGS -Werror
85         )
86 endif()
87
88 add_lex_files(WIRETAP_FILES
89         ascend_scanner.l
90         k12text.l
91 )
92
93 add_yacc_files(WIRETAP_FILES
94         ascend.y
95 )
96
97 set(wiretap_LIBS
98         ${GLIB2_LIBRARIES}
99         ${GMODULE2_LIBRARIES}
100         ${ZLIB_LIBRARIES}
101         wsutil
102 )
103
104 add_library(wiretap ${LINK_MODE_LIB}
105         ${WIRETAP_FILES}
106 )
107 set_target_properties(wiretap PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
108
109 target_link_libraries(wiretap ${wiretap_LIBS})
110
111 if(NOT ${ENABLE_STATIC})
112         install(TARGETS wiretap
113                 LIBRARY DESTINATION lib
114                 RUNTIME DESTINATION lib
115                 ARCHIVE DESTINATION lib
116         )
117 endif()
118