37e740d8cfc7a3f5ac0f0d52b27cb0d48c1a752c
[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         iptrace.c
48         iseries.c
49         jpeg_jfif.c
50         k12.c
51         lanalyzer.c
52         libpcap.c
53         mpeg.c
54         netmon.c
55         netscaler.c
56         netscreen.c
57         nettl.c
58         network_instruments.c
59         netxray.c
60         ngsniffer.c
61         packetlogger.c
62         pcap-common.c
63         pcapng.c
64         pppdump.c
65         radcom.c
66         snoop.c
67         tnef.c
68         toshiba.c
69         visual.c
70         vms.c
71         wtap.c
72 )
73
74 set(CLEAN_FILES
75         ${WIRETAP_FILES}
76 )
77
78 if (WERROR) 
79         set_source_files_properties(
80                 ${CLEAN_FILES}
81                 PROPERTIES
82                 COMPILE_FLAGS -Werror
83         )
84 endif()
85
86 add_lex_files(WIRETAP_FILES
87         ascend_scanner.l
88         k12text.l
89 )
90
91 add_yacc_files(WIRETAP_FILES
92         ascend.y
93 )
94
95 set(wiretap_LIBS
96         ${GLIB2_LIBRARIES}
97         ${Z_LIBRARIES}
98         wsutil
99 )
100
101 add_library(wiretap SHARED
102         ${WIRETAP_FILES}
103 )
104
105 target_link_libraries(wiretap ${wiretap_LIBS})
106
107 install(TARGETS wiretap
108         LIBRARY DESTINATION lib
109         RUNTIME DESTINATION lib
110         ARCHIVE DESTINATION lib
111 )
112