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