d452f423c838dfea715a1c47c12932d73ade4b32
[obnox/wireshark/wip.git] / epan / 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 if (HAVE_LIBLUA)
25         add_subdirectory( wslua )
26         set(WSLUA_LIB wslua)
27 else()
28         set(WSLUA_LIB )
29 endif()
30 if (HAVE_LIBPYTHON)
31         add_subdirectory( wspython )
32         set(WSPYTHON_LIB wspython)
33 else()
34         set(WSPYTHON_LIB )
35 endif()
36
37 add_subdirectory( dissectors/dcerpc )
38
39 include_directories(
40         ${CMAKE_CURRENT_BINARY_DIR}
41         ${CMAKE_CURRENT_SOURCE_DIR}/dfilter
42         ${CMAKE_CURRENT_SOURCE_DIR}/dissectors
43         ${CMAKE_CURRENT_SOURCE_DIR}/ftypes
44 )
45
46 link_directories(
47         wslua
48         wspython
49 )
50
51 set(CRC_FILES
52         crc/crc-16-plain.c
53 )
54
55 set(CRYPT_FILES
56         crypt/airpdcap.c
57         crypt/airpdcap_ccmp.c
58         crypt/airpdcap_debug.c
59         crypt/airpdcap_rijndael.c
60         crypt/airpdcap_tkip.c
61         crypt/airpdcap_wep.c
62         crypt/crypt-aes.c
63         crypt/crypt-des.c
64         crypt/crypt-md4.c
65         crypt/crypt-md5.c
66         crypt/crypt-rc4.c
67         crypt/crypt-sha1.c
68 )
69
70 set(DFILTER_FILES
71         dfilter/dfilter.c
72         dfilter/dfilter-macro.c
73         dfilter/dfunctions.c
74         dfilter/dfvm.c
75         dfilter/drange.c
76         dfilter/gencode.c
77         dfilter/semcheck.c
78         dfilter/sttype-function.c
79         dfilter/sttype-integer.c
80         dfilter/sttype-pointer.c
81         dfilter/sttype-range.c
82         dfilter/sttype-string.c
83         dfilter/sttype-test.c
84         dfilter/syntax-tree.c
85 )
86
87 set(DFILTER_CLEAN_FILES
88         ${DFILTER_FILES}
89 )
90
91 add_lex_files(DFILTER_FILES
92         dfilter/scanner.l
93 )
94
95 add_lemon_files(DFILTER_FILES
96         dfilter/grammar.lemon
97 )
98
99 if (AUTOGEN_pidl)
100     # TODO
101 endif()
102
103 if (AUTOGEN_dcerpc)
104   FOREACH(PROTOCOL_NAME ${PIDL_DISSECTOR_AUTOGEN_NAMES})
105     set(PIDL_DISSECTOR_AUTOGEN_SRC 
106         ${PIDL_DISSECTOR_AUTOGEN_SRC}
107         dissectors/dcerpc/${PROTOCOL_NAME}/packet-dcerpc-${PROTOCOL_NAME}.c
108     )
109   ENDFOREACH()
110
111   FOREACH(PROTOCOL_NAME ${PIDL_DISSECTOR_AUTOGEN_NAMES})
112     SET(CUR_PROTO_DIR ${CMAKE_CURRENT_SOURCE_DIR}/dissectors/dcerpc/${PROTOCOL_NAME})
113     SET(CUR_PROTO_C_FILE packet-dcerpc-${PROTOCOL_NAME}.c)
114     SET(CUR_PROTO_H_FILE packet-dcerpc-${PROTOCOL_NAME}.h)
115     ADD_CUSTOM_COMMAND(
116         OUTPUT
117           ${CUR_PROTO_DIR}/${CUR_PROTO_C_FILE}
118           ${CUR_PROTO_DIR}/${CUR_PROTO_H_FILE}
119         COMMAND
120           idl2wrs ${PROTOCOL_NAME}
121         COMMAND
122           ${CMAKE_COMMAND} -E copy_if_different ${CUR_PROTO_DIR}/${CUR_PROTO_C_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/dissectors/${CUR_PROTO_C_FILE}
123         COMMAND
124           ${CMAKE_COMMAND} -E copy_if_different ${CUR_PROTO_DIR}/${CUR_PROTO_H_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/dissectors/${CUR_PROTO_H_FILE}
125         WORKING_DIRECTORY
126           ${CUR_PROTO_DIR}
127         DEPENDS
128           ${CUR_PROTO_DIR}/${PROTOCOL_NAME}.idl
129           ${CUR_PROTO_DIR}/${PROTOCOL_NAME}.cnf
130           ${CUR_PROTO_DIR}/packet-dcerpc-${PROTOCOL_NAME}-template.c 
131           ${CUR_PROTO_DIR}/packet-dcerpc-${PROTOCOL_NAME}-template.h
132     )
133   ENDFOREACH()
134 else()
135   FOREACH(PROTOCOL_NAME ${PIDL_DISSECTOR_AUTOGEN_NAMES})
136     set(PIDL_DISSECTOR_AUTOGEN_SRC 
137         ${PIDL_DISSECTOR_AUTOGEN_SRC}
138         dissectors/packet-dcerpc-${PROTOCOL_NAME}.c
139     )
140   ENDFOREACH()
141 endif()
142
143 ADD_CUSTOM_COMMAND(
144     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/packet-ncp2222.c
145     COMMAND ${PYTHON_EXECUTABLE}
146       ${CMAKE_SOURCE_DIR}/tools/ncp2222.py
147       -o ${CMAKE_CURRENT_BINARY_DIR}/packet-ncp2222.c
148     DEPENDS
149       dissectors/packet-ncp2222.inc
150       ${CMAKE_SOURCE_DIR}/tools/ncp2222.py
151 )
152
153 ADD_CUSTOM_COMMAND(
154     OUTPUT
155        x11-dissector
156 #      x11-declarations.h
157 #      x11-enum.h
158 #      x11-extension-errors.h
159 #      x11-extension-implementation.h
160 #      x11-fields
161 #      x11-glx-render-enum.h
162 #      x11-register-info.h
163     COMMAND ${PERL_EXECUTABLE}
164       ${CMAKE_SOURCE_DIR}/tools/process-x11-fields.pl
165       <dissectors/x11-fields
166     COMMAND ${PERL_EXECUTABLE}
167       ${CMAKE_SOURCE_DIR}/tools/process-x11-xcb.pl
168     DEPENDS
169       dissectors/x11-fields
170       ${CMAKE_SOURCE_DIR}/tools/process-x11-fields.pl
171       ${CMAKE_SOURCE_DIR}/tools/process-x11-xcb.pl
172 )
173
174 set(PIDL_DISSECTOR_SRC
175         dissectors/packet-dcerpc-atsvc.c
176         dissectors/packet-dcerpc-dfs.c
177         dissectors/packet-dcerpc-dssetup.c
178         dissectors/packet-dcerpc-efs.c
179         dissectors/packet-dcerpc-initshutdown.c
180         dissectors/packet-dcerpc-nspi.c
181         dissectors/packet-dcerpc-rfr.c
182         dissectors/packet-dcerpc-wkssvc.c
183         dissectors/packet-dcerpc-wzcsvc.c
184         dissectors/packet-dcerpc-frstrans.c
185 )
186 set(DIRTY_PIDL_DISSECTOR_SRC
187         dissectors/packet-dcerpc-dnsserver.c
188         dissectors/packet-dcerpc-eventlog.c
189         dissectors/packet-dcerpc-lsa.c
190         dissectors/packet-dcerpc-srvsvc.c
191         dissectors/packet-dcerpc-winreg.c
192 )
193 set(ASN1_DISSECTOR_SRC
194         dissectors/packet-acp133.c
195         dissectors/packet-acse.c
196         dissectors/packet-ansi_tcap.c
197         dissectors/packet-camel.c
198         dissectors/packet-cdt.c
199         dissectors/packet-cmip.c
200         dissectors/packet-cmp.c
201         dissectors/packet-cms.c
202         dissectors/packet-crmf.c
203         dissectors/packet-dap.c
204         dissectors/packet-disp.c
205         dissectors/packet-dop.c
206         dissectors/packet-dsp.c
207         dissectors/packet-ess.c
208         dissectors/packet-ftam.c
209         dissectors/packet-goose.c
210         dissectors/packet-h225.c
211         dissectors/packet-h235.c
212         dissectors/packet-h245.c
213         dissectors/packet-h248.c
214         dissectors/packet-h282.c
215         dissectors/packet-h283.c
216         dissectors/packet-h323.c
217         dissectors/packet-h450.c
218         dissectors/packet-h450-ros.c
219         dissectors/packet-h460.c
220         dissectors/packet-h501.c
221         dissectors/packet-logotypecertextn.c
222         dissectors/packet-mms.c
223         dissectors/packet-mpeg-audio.c
224         dissectors/packet-mpeg-pes.c
225         dissectors/packet-ns_cert_exts.c
226         dissectors/packet-ocsp.c
227         dissectors/packet-opsi.c
228         dissectors/packet-p7.c
229         dissectors/packet-pkcs1.c
230         dissectors/packet-pkinit.c
231         dissectors/packet-pkix1explicit.c
232         dissectors/packet-pkix1implicit.c
233         dissectors/packet-pkixproxy.c
234         dissectors/packet-pkixqualified.c
235         dissectors/packet-pkixtsp.c
236         dissectors/packet-q932.c
237         dissectors/packet-q932-ros.c
238         dissectors/packet-qsig.c
239         dissectors/packet-ranap.c
240         dissectors/packet-ros.c
241         dissectors/packet-rtnet.c
242         dissectors/packet-rtse.c
243         dissectors/packet-s4406.c
244         dissectors/packet-sabp.c
245         dissectors/packet-smrse.c
246         dissectors/packet-spnego.c
247         dissectors/packet-ulp.c
248         dissectors/packet-wlancertextn.c
249         dissectors/packet-x224.c
250         dissectors/packet-x509af.c
251         dissectors/packet-x509ce.c
252         dissectors/packet-x509if.c
253         dissectors/packet-x509sat.c 
254 )
255
256 set(DIRTY_ASN1_DISSECTOR_SRC
257         dissectors/packet-ansi_map.c
258         dissectors/packet-charging_ase.c
259         dissectors/packet-gnm.c
260         dissectors/packet-gsm_map.c
261         dissectors/packet-inap.c
262         dissectors/packet-ldap.c
263         dissectors/packet-lte-rrc.c
264         dissectors/packet-nbap.c
265         dissectors/packet-pcap.c
266         dissectors/packet-pkcs12.c
267         dissectors/packet-pres.c
268         dissectors/packet-rnsap.c
269         dissectors/packet-rrc.c
270         dissectors/packet-rrlp.c
271         dissectors/packet-s1ap.c
272         dissectors/packet-snmp.c
273         dissectors/packet-t125.c
274         dissectors/packet-tcap.c
275         dissectors/packet-x2ap.c
276         dissectors/packet-x411.c
277         dissectors/packet-x420.c
278 )
279
280 set(DISSECTOR_SRC
281         dissectors/packet-2dparityfec.c
282         dissectors/packet-3com-njack.c
283         dissectors/packet-3com-xns.c
284         dissectors/packet-3g-a11.c
285         dissectors/packet-6lowpan.c
286         dissectors/packet-9p.c
287         dissectors/packet-aarp.c
288         dissectors/packet-acap.c
289         dissectors/packet-acn.c
290         dissectors/packet-actrace.c
291         dissectors/packet-afp.c
292         dissectors/packet-afs.c
293         dissectors/packet-agentx.c
294         dissectors/packet-aim.c
295         dissectors/packet-aim-adverts.c
296         dissectors/packet-aim-admin.c
297         dissectors/packet-aim-bos.c
298         dissectors/packet-aim-buddylist.c
299         dissectors/packet-aim-chat.c
300         dissectors/packet-aim-chatnav.c
301         dissectors/packet-aim-directory.c
302         dissectors/packet-aim-email.c
303         dissectors/packet-aim-generic.c
304         dissectors/packet-aim-icq.c
305         dissectors/packet-aim-invitation.c
306         dissectors/packet-aim-location.c
307         dissectors/packet-aim-messaging.c
308         dissectors/packet-aim-oft.c
309         dissectors/packet-aim-popup.c
310         dissectors/packet-aim-signon.c
311         dissectors/packet-aim-ssi.c
312         dissectors/packet-aim-sst.c
313         dissectors/packet-aim-stats.c
314         dissectors/packet-aim-translate.c
315         dissectors/packet-aim-userlookup.c
316         dissectors/packet-airopeek.c
317         dissectors/packet-ajp13.c
318         dissectors/packet-alcap.c
319         dissectors/packet-amqp.c
320         dissectors/packet-amr.c
321         dissectors/packet-ans.c
322         dissectors/packet-ansi_637.c
323         dissectors/packet-ansi_683.c
324         dissectors/packet-ansi_801.c
325         dissectors/packet-ansi_a.c
326         dissectors/packet-aodv.c
327         dissectors/packet-aoe.c
328         dissectors/packet-ap1394.c
329         dissectors/packet-app-pkix-cert.c
330         dissectors/packet-arcnet.c
331         dissectors/packet-armagetronad.c
332         dissectors/packet-arp.c
333         dissectors/packet-artnet.c
334         dissectors/packet-aruba-adp.c
335         dissectors/packet-asap.c
336         dissectors/packet-ascend.c
337         dissectors/packet-asf.c
338         dissectors/packet-atalk.c
339         dissectors/packet-atm.c
340         dissectors/packet-auto_rp.c
341         dissectors/packet-ax4000.c
342         dissectors/packet-ayiya.c
343         dissectors/packet-bacapp.c
344         dissectors/packet-bacnet.c
345         dissectors/packet-banana.c
346         dissectors/packet-bat.c
347         dissectors/packet-bctp.c
348         dissectors/packet-beep.c
349         dissectors/packet-ber.c
350         dissectors/packet-bfd.c
351         dissectors/packet-bgp.c
352         dissectors/packet-bittorrent.c
353         dissectors/packet-bjnp.c
354         dissectors/packet-bofl.c
355         dissectors/packet-bootp.c
356         dissectors/packet-bootparams.c
357         dissectors/packet-bpdu.c
358         dissectors/packet-brdwlk.c
359         dissectors/packet-bssap.c
360         dissectors/packet-bssgp.c
361         dissectors/packet-btamp.c
362         dissectors/packet-bthci_acl.c
363         dissectors/packet-bthci_cmd.c
364         dissectors/packet-bthci_evt.c
365         dissectors/packet-bthci_sco.c
366         dissectors/packet-btl2cap.c
367         dissectors/packet-btrfcomm.c
368         dissectors/packet-btsdp.c
369         dissectors/packet-bvlc.c
370         dissectors/packet-calcappprotocol.c
371         dissectors/packet-capwap.c
372         dissectors/packet-cast.c
373         dissectors/packet-catapult-dct2000.c
374         dissectors/packet-ccsds.c
375         dissectors/packet-cdp.c
376         dissectors/packet-cfm.c
377         dissectors/packet-cgmp.c
378         dissectors/packet-chdlc.c
379         dissectors/packet-cigi.c
380         dissectors/packet-cimd.c
381         dissectors/packet-cimetrics.c
382         dissectors/packet-cip.c
383         dissectors/packet-cisco-erspan.c
384         dissectors/packet-cisco-oui.c
385         dissectors/packet-cisco-sm.c
386         dissectors/packet-cisco-wids.c
387         dissectors/packet-classicstun.c
388         dissectors/packet-clearcase.c
389         dissectors/packet-clip.c
390         dissectors/packet-clnp.c
391         dissectors/packet-cmpp.c
392         dissectors/packet-collectd.c
393         dissectors/packet-componentstatus.c
394         dissectors/packet-cops.c
395         dissectors/packet-cosine.c
396         dissectors/packet-cpfi.c
397         dissectors/packet-cpha.c
398         dissectors/packet-csm-encaps.c
399         dissectors/packet-ctdb.c
400         dissectors/packet-cups.c
401         dissectors/packet-daap.c
402         dissectors/packet-data.c
403         dissectors/packet-daytime.c
404         dissectors/packet-dcc.c
405         dissectors/packet-dccp.c
406         dissectors/packet-dcerpc-bossvr.c
407         dissectors/packet-dcerpc-browser.c
408         dissectors/packet-dcerpc-cds_clerkserver.c
409         dissectors/packet-dcerpc-cds_solicit.c
410         dissectors/packet-dcerpc-conv.c
411         dissectors/packet-dcerpc-cprpc_server.c
412         dissectors/packet-dcerpc-dce122.c
413         dissectors/packet-dcerpc-dtsprovider.c
414         dissectors/packet-dcerpc-dtsstime_req.c
415         dissectors/packet-dcerpc-epm.c
416         dissectors/packet-dcerpc-fileexp.c
417         dissectors/packet-dcerpc-fldb.c
418         dissectors/packet-dcerpc-frsapi.c
419         dissectors/packet-dcerpc-frsrpc.c
420         dissectors/packet-dcerpc-ftserver.c
421         dissectors/packet-dcerpc-icl_rpc.c
422         dissectors/packet-dcerpc-krb5rpc.c
423         dissectors/packet-dcerpc-llb.c
424         dissectors/packet-dcerpc-mapi.c
425         dissectors/packet-dcerpc-messenger.c
426         dissectors/packet-dcerpc-mgmt.c
427         dissectors/packet-dcerpc-ndr.c
428         dissectors/packet-dcerpc-netlogon.c
429         dissectors/packet-dcerpc-pnp.c
430         dissectors/packet-dcerpc-rdaclif.c
431         dissectors/packet-dcerpc-rep_proc.c
432         dissectors/packet-dcerpc-roverride.c
433         dissectors/packet-dcerpc-rpriv.c
434         dissectors/packet-dcerpc-rras.c
435         dissectors/packet-dcerpc-rs_acct.c
436         dissectors/packet-dcerpc-rs_attr.c
437         dissectors/packet-dcerpc-rs_attr_schema.c
438         dissectors/packet-dcerpc-rs_bind.c
439         dissectors/packet-dcerpc-rs_misc.c
440         dissectors/packet-dcerpc-rs_pgo.c
441         dissectors/packet-dcerpc-rs_plcy.c
442         dissectors/packet-dcerpc-rs_prop_acct.c
443         dissectors/packet-dcerpc-rs_prop_acl.c
444         dissectors/packet-dcerpc-rs_prop_attr.c
445         dissectors/packet-dcerpc-rs_prop_pgo.c
446         dissectors/packet-dcerpc-rs_prop_plcy.c
447         dissectors/packet-dcerpc-rs_pwd_mgmt.c
448         dissectors/packet-dcerpc-rs_repadm.c
449         dissectors/packet-dcerpc-rs_replist.c
450         dissectors/packet-dcerpc-rs_repmgr.c
451         dissectors/packet-dcerpc-rs_unix.c
452         dissectors/packet-dcerpc-rsec_login.c
453         dissectors/packet-dcerpc-samr.c
454         dissectors/packet-dcerpc-secidmap.c
455         dissectors/packet-dcerpc-spoolss.c
456         dissectors/packet-dcerpc-svcctl.c
457         dissectors/packet-dcerpc-tapi.c
458         dissectors/packet-dcerpc-tkn4int.c
459         dissectors/packet-dcerpc-trksvr.c
460         dissectors/packet-dcerpc-ubikdisk.c
461         dissectors/packet-dcerpc-ubikvote.c
462         dissectors/packet-dcerpc-update.c
463         dissectors/packet-dcerpc.c
464         dissectors/packet-dcm.c
465         dissectors/packet-dcom.c
466         dissectors/packet-dcom-dispatch.c
467         dissectors/packet-dcom-oxid.c
468         dissectors/packet-dcom-remact.c
469         dissectors/packet-dcom-remunkn.c
470         dissectors/packet-dcom-sysact.c
471         dissectors/packet-dcp-etsi.c
472         dissectors/packet-ddtp.c
473         dissectors/packet-dec-bpdu.c
474         dissectors/packet-dec-dnart.c
475         dissectors/packet-dect.c
476         dissectors/packet-dhcp-failover.c
477         dissectors/packet-dhcpv6.c
478         dissectors/packet-diameter.c
479         dissectors/packet-diameter_3gpp.c
480         dissectors/packet-dis.c
481         dissectors/packet-dis-enums.c
482         dissectors/packet-dis-fields.c
483         dissectors/packet-dis-pdus.c
484         dissectors/packet-diffserv-mpls-common.c
485         dissectors/packet-distcc.c
486         dissectors/packet-dlm3.c
487         dissectors/packet-dlsw.c
488         dissectors/packet-dmp.c
489         dissectors/packet-dnp.c
490         dissectors/packet-dns.c
491         dissectors/packet-dplay.c
492         dissectors/packet-dpnss.c
493         dissectors/packet-dpnss-link.c
494         dissectors/packet-drda.c
495         dissectors/packet-dsi.c
496         dissectors/packet-dtls.c
497         dissectors/packet-dtn.c
498         dissectors/packet-dtp.c
499         dissectors/packet-dtpt.c
500         dissectors/packet-dua.c
501         dissectors/packet-dvmrp.c
502         dissectors/packet-e100.c
503         dissectors/packet-e164.c
504         dissectors/packet-e212.c
505         dissectors/packet-eap.c
506         dissectors/packet-eapol.c
507         dissectors/packet-echo.c
508         dissectors/packet-edonkey.c
509         dissectors/packet-egd.c
510         dissectors/packet-ehs.c
511         dissectors/packet-eigrp.c
512         dissectors/packet-enc.c
513         dissectors/packet-enip.c
514         dissectors/packet-enrp.c
515         dissectors/packet-enttec.c
516         dissectors/packet-epl.c
517         dissectors/packet-epl_v1.c
518         dissectors/packet-epmd.c
519         dissectors/packet-erf.c
520         dissectors/packet-esis.c
521         dissectors/packet-eth.c
522         dissectors/packet-etherip.c
523         dissectors/packet-ethertype.c
524         dissectors/packet-evrc.c
525         dissectors/packet-exec.c
526         dissectors/packet-extreme.c
527         dissectors/packet-fc.c
528         dissectors/packet-fcct.c
529         dissectors/packet-fcdns.c
530         dissectors/packet-fcels.c
531         dissectors/packet-fcfcs.c
532         dissectors/packet-fcfzs.c
533         dissectors/packet-fcip.c
534         dissectors/packet-fclctl.c
535         dissectors/packet-fcoe.c
536         dissectors/packet-fcp.c
537         dissectors/packet-fcsb3.c
538         dissectors/packet-fcsp.c
539         dissectors/packet-fcswils.c
540         dissectors/packet-fddi.c
541         dissectors/packet-fefd.c
542         dissectors/packet-ff.c
543         dissectors/packet-fip.c
544         dissectors/packet-fix.c
545         dissectors/packet-fmp.c
546         dissectors/packet-fmp_notify.c
547         dissectors/packet-force10-oui.c
548         dissectors/packet-fr.c
549         dissectors/packet-fp_hint.c  
550         dissectors/packet-fractalgeneratorprotocol.c
551         dissectors/packet-frame.c
552         dissectors/packet-ftp.c
553         dissectors/packet-fw1.c
554         dissectors/packet-g723.c
555         dissectors/packet-gdsdb.c
556         dissectors/packet-gift.c
557         dissectors/packet-giop.c
558         dissectors/packet-glbp.c
559         dissectors/packet-gmrp.c
560         dissectors/packet-gnutella.c
561         dissectors/packet-gpef.c
562         dissectors/packet-gprs-llc.c
563         dissectors/packet-gprs-ns.c
564         dissectors/packet-gre.c
565         dissectors/packet-gsm_a_bssmap.c
566         dissectors/packet-gsm_a_common.c
567         dissectors/packet-gsm_a_dtap.c
568         dissectors/packet-gsm_a_gm.c
569         dissectors/packet-gsm_a_rp.c
570         dissectors/packet-gsm_a_rr.c
571         dissectors/packet-gsm_ipa.c
572         dissectors/packet-gsm_bsslap.c
573         dissectors/packet-gsm_bssmap_le.c
574         dissectors/packet-gsm_sms.c
575         dissectors/packet-gsm_sms_ud.c
576         dissectors/packet-gsm_um.c
577         dissectors/packet-gssapi.c
578         dissectors/packet-gtp.c
579         dissectors/packet-gtpv2.c
580         dissectors/packet-gvrp.c
581         dissectors/packet-h1.c
582         dissectors/packet-h221_nonstd.c
583         dissectors/packet-h223.c
584         dissectors/packet-h248_annex_c.c
585         dissectors/packet-h248_annex_e.c
586         dissectors/packet-h248_3gpp.c
587         dissectors/packet-h248_7.c
588         dissectors/packet-h248_10.c
589         dissectors/packet-h248_q1950.c
590         dissectors/packet-h261.c
591         dissectors/packet-h263.c
592         dissectors/packet-h263p.c
593         dissectors/packet-h264.c
594         dissectors/packet-hci_h1.c
595         dissectors/packet-hci_h4.c
596         dissectors/packet-hclnfsd.c
597         dissectors/packet-hilscher.c
598         dissectors/packet-hip.c
599         dissectors/packet-homeplug.c
600         dissectors/packet-hpext.c
601         dissectors/packet-hpsw.c
602         dissectors/packet-hpteam.c
603         dissectors/packet-hsrp.c
604         dissectors/packet-http.c
605         dissectors/packet-hyperscsi.c
606         dissectors/packet-i2c.c
607         dissectors/packet-iana-oui.c
608         dissectors/packet-iapp.c
609         dissectors/packet-iax2.c
610         dissectors/packet-icap.c
611         dissectors/packet-icep.c
612         dissectors/packet-icmp.c
613         dissectors/packet-icmpv6.c
614         dissectors/packet-icp.c
615         dissectors/packet-icq.c
616         dissectors/packet-idp.c
617         dissectors/packet-iec104.c
618         dissectors/packet-ieee80211.c
619         dissectors/packet-ieee802154.c
620         dissectors/packet-ieee8021ah.c
621         dissectors/packet-ieee8023.c
622         dissectors/packet-ieee802a.c
623         dissectors/packet-ifcp.c
624         dissectors/packet-igap.c
625         dissectors/packet-igmp.c
626         dissectors/packet-igrp.c
627         dissectors/packet-image-gif.c
628         dissectors/packet-image-jfif.c
629         dissectors/packet-image-png.c
630         dissectors/packet-imap.c
631         dissectors/packet-imf.c
632         dissectors/packet-infiniband.c
633         dissectors/packet-ipars.c
634         dissectors/packet-ip.c
635         dissectors/packet-ipdc.c
636         dissectors/packet-ipfc.c
637         dissectors/packet-ipmi.c
638         dissectors/packet-ipmi-session.c
639         dissectors/packet-ipp.c
640         dissectors/packet-ipsec.c
641         dissectors/packet-ipsec-tcp.c
642         dissectors/packet-ipsec-udp.c
643         dissectors/packet-ipsi-ctl.c
644         dissectors/packet-ipv6.c
645         dissectors/packet-ipvs-syncd.c
646         dissectors/packet-ipx.c
647         dissectors/packet-ipxwan.c
648         dissectors/packet-irc.c
649         dissectors/packet-isakmp.c
650         dissectors/packet-iscsi.c
651         dissectors/packet-isdn.c
652         dissectors/packet-isis-clv.c
653         dissectors/packet-isis-hello.c
654         dissectors/packet-isis-lsp.c
655         dissectors/packet-isis-snp.c
656         dissectors/packet-isis.c
657         dissectors/packet-isl.c
658         dissectors/packet-ismacryp.c
659         dissectors/packet-ismp.c
660         dissectors/packet-isns.c
661         dissectors/packet-isup.c
662         dissectors/packet-itdm.c
663         dissectors/packet-iua.c
664         dissectors/packet-iuup.c
665         dissectors/packet-iwarp-ddp-rdmap.c
666         dissectors/packet-iwarp-mpa.c
667         dissectors/packet-jabber.c
668         dissectors/packet-jmirror.c
669         dissectors/packet-jpeg.c
670         dissectors/packet-juniper.c
671         dissectors/packet-jxta.c
672         dissectors/packet-k12.c
673         dissectors/packet-kadm5.c
674         dissectors/packet-kdp.c
675         dissectors/packet-kerberos.c
676         dissectors/packet-kerberos4.c
677         dissectors/packet-klm.c
678         dissectors/packet-kingfisher.c
679         dissectors/packet-kink.c
680         dissectors/packet-kismet.c
681         dissectors/packet-kpasswd.c
682         dissectors/packet-l2tp.c
683         dissectors/packet-lanforge.c
684         dissectors/packet-lapb.c
685         dissectors/packet-lapbether.c
686         dissectors/packet-lapd.c
687         dissectors/packet-lapdm.c
688         dissectors/packet-laplink.c
689         dissectors/packet-l1-events.c
690         dissectors/packet-ldp.c
691         dissectors/packet-ldss.c
692         dissectors/packet-lge_monitor.c
693         dissectors/packet-linx.c
694         dissectors/packet-llc.c
695         dissectors/packet-lldp.c
696         dissectors/packet-llt.c
697         dissectors/packet-lmi.c
698         dissectors/packet-lmp.c
699         dissectors/packet-loop.c
700         dissectors/packet-lpd.c
701         dissectors/packet-lsc.c
702         dissectors/packet-lwapp.c
703         dissectors/packet-lwres.c
704         dissectors/packet-m2pa.c
705         dissectors/packet-m2tp.c
706         dissectors/packet-m2ua.c
707         dissectors/packet-m3ua.c
708         dissectors/packet-mac-lte.c
709         dissectors/packet-maccontrol.c
710         dissectors/packet-manolito.c
711         dissectors/packet-mbtcp.c
712         dissectors/packet-mdshdr.c
713         dissectors/packet-media.c
714         dissectors/packet-megaco.c
715         dissectors/packet-memcache.c
716         dissectors/packet-mesh.c
717         dissectors/packet-meta.c
718         dissectors/packet-mgcp.c
719         dissectors/packet-mikey.c
720         dissectors/packet-miop.c
721         dissectors/packet-mip.c
722         dissectors/packet-mip6.c
723         dissectors/packet-ms-mms.c
724         dissectors/packet-mmse.c
725         dissectors/packet-mount.c
726         dissectors/packet-mp2t.c
727         dissectors/packet-mp4ves.c
728         dissectors/packet-mpeg1.c
729         dissectors/packet-mpls.c
730         dissectors/packet-mpls-echo.c
731         dissectors/packet-mq.c
732         dissectors/packet-mq-pcf.c
733         dissectors/packet-mrdisc.c
734         dissectors/packet-msdp.c
735         dissectors/packet-msnlb.c
736         dissectors/packet-msn-messenger.c
737         dissectors/packet-msnip.c
738         dissectors/packet-msproxy.c
739         dissectors/packet-msrp.c
740         dissectors/packet-mstp.c
741         dissectors/packet-mtp2.c
742         dissectors/packet-mtp3.c
743         dissectors/packet-mtp3mg.c
744         dissectors/packet-multipart.c
745         dissectors/packet-mysql.c
746         dissectors/packet-nas_eps.c
747         dissectors/packet-nasdaq-itch.c
748         dissectors/packet-nat-pmp.c
749         dissectors/packet-nb_rtpmux.c
750         dissectors/packet-nbd.c
751         dissectors/packet-nbipx.c
752         dissectors/packet-nbns.c
753         dissectors/packet-ncp.c
754         packet-ncp2222.c
755         dissectors/packet-ncp-nmas.c
756         dissectors/packet-ncp-sss.c
757         dissectors/packet-ncs.c
758         dissectors/packet-ndmp.c
759         dissectors/packet-ndps.c
760         dissectors/packet-netbios.c
761         dissectors/packet-netdump.c
762         dissectors/packet-netflow.c
763         dissectors/packet-netperfmeter.c
764         dissectors/packet-netsync.c
765         dissectors/packet-nettl.c
766         dissectors/packet-newmail.c
767         dissectors/packet-nfs.c
768         dissectors/packet-nfsacl.c
769         dissectors/packet-nfsauth.c
770         dissectors/packet-nhrp.c
771         dissectors/packet-nisplus.c
772         dissectors/packet-nlm.c
773         dissectors/packet-nlsp.c
774         dissectors/packet-nntp.c
775         dissectors/packet-nstrace.c
776         dissectors/packet-nsip.c
777         dissectors/packet-nsrp.c
778         dissectors/packet-nt-oui.c
779         dissectors/packet-nt-sonmp.c
780         dissectors/packet-nt-tpcp.c
781         dissectors/packet-ntlmssp.c
782         dissectors/packet-ntp.c
783         dissectors/packet-null.c
784         dissectors/packet-oicq.c
785         dissectors/packet-olsr.c
786         dissectors/packet-omapi.c
787         dissectors/packet-omron-fins.c
788         dissectors/packet-osi-options.c
789         dissectors/packet-osi.c
790         dissectors/packet-ositp.c
791         dissectors/packet-ospf.c
792         dissectors/packet-p_mul.c
793         dissectors/packet-packetbb.c
794         dissectors/packet-packetlogger.c
795         dissectors/packet-pagp.c
796         dissectors/packet-paltalk.c
797         dissectors/packet-pana.c
798         dissectors/packet-pcep.c
799         dissectors/packet-pcli.c
800         dissectors/packet-pcnfsd.c
801         dissectors/packet-pdcp-lte.c
802         dissectors/packet-per.c
803         dissectors/packet-pflog.c
804         dissectors/packet-pgm.c
805         dissectors/packet-pim.c
806         dissectors/packet-pingpongprotocol.c
807         dissectors/packet-pktgen.c
808         dissectors/packet-pktc.c
809         dissectors/packet-pop.c
810         dissectors/packet-portmap.c
811         dissectors/packet-pgsql.c
812         dissectors/packet-ppi.c
813         dissectors/packet-ppp.c
814         dissectors/packet-pppoe.c
815         dissectors/packet-pptp.c
816         dissectors/packet-prp.c
817         dissectors/packet-ptp.c
818         dissectors/packet-pvfs2.c
819         dissectors/packet-pw-common.c
820         dissectors/packet-pw-eth.c
821         dissectors/packet-pw-hdlc.c
822         dissectors/packet-pw-fr.c
823         dissectors/packet-pw-atm.c
824         dissectors/packet-pw-cesopsn.c
825         dissectors/packet-pw-satop.c
826         dissectors/packet-q2931.c
827         dissectors/packet-q931.c
828         dissectors/packet-q933.c
829         dissectors/packet-qllc.c
830         dissectors/packet-quake.c
831         dissectors/packet-quake2.c
832         dissectors/packet-quake3.c
833         dissectors/packet-quakeworld.c
834         dissectors/packet-radius.c
835         dissectors/packet-radius_packetcable.c
836         dissectors/packet-radiotap.c
837         dissectors/packet-raw.c
838         dissectors/packet-rdm.c
839         dissectors/packet-rdt.c
840         dissectors/packet-redback.c
841         dissectors/packet-redbackli.c
842         dissectors/packet-retix-bpdu.c
843         dissectors/packet-rfc2190.c
844         dissectors/packet-rgmp.c
845         dissectors/packet-rip.c
846         dissectors/packet-ripng.c
847         dissectors/packet-rlc.c
848         dissectors/packet-rlc-lte.c
849         dissectors/packet-rlm.c
850         dissectors/packet-rlogin.c
851         dissectors/packet-rmcp.c
852         dissectors/packet-rmi.c
853         dissectors/packet-rmp.c
854         dissectors/packet-rmt-alc.c
855         dissectors/packet-rmt-common.c
856         dissectors/packet-rmt-fec.c
857         dissectors/packet-rmt-lct.c
858         dissectors/packet-rmt-norm.c
859         dissectors/packet-roofnet.c
860         dissectors/packet-rpc.c
861         dissectors/packet-rpcap.c
862         dissectors/packet-rpl.c
863         dissectors/packet-rquota.c
864         dissectors/packet-rsh.c
865         dissectors/packet-rsl.c
866         dissectors/packet-rstat.c
867         dissectors/packet-rsvp.c
868         dissectors/packet-rsync.c
869         dissectors/packet-rtcp.c
870         dissectors/packet-rtmpt.c
871         dissectors/packet-rtp-events.c
872         dissectors/packet-rtp.c
873         dissectors/packet-rtps.c
874         dissectors/packet-rtps2.c
875         dissectors/packet-rtsp.c
876         dissectors/packet-rudp.c
877         dissectors/packet-rwall.c
878         dissectors/packet-rx.c
879         dissectors/packet-s5066.c
880         dissectors/packet-sadmind.c
881         dissectors/packet-sap.c
882         dissectors/packet-sbus.c
883         dissectors/packet-sccp.c
884         dissectors/packet-sccpmg.c
885         dissectors/packet-scsi.c
886         dissectors/packet-scsi-mmc.c
887         dissectors/packet-scsi-osd.c
888         dissectors/packet-scsi-sbc.c
889         dissectors/packet-scsi-smc.c
890         dissectors/packet-scsi-ssc.c
891         dissectors/packet-sctp.c
892         dissectors/packet-sdlc.c
893         dissectors/packet-sdp.c
894         dissectors/packet-sebek.c
895         dissectors/packet-ses.c
896         dissectors/packet-sflow.c
897         dissectors/packet-simulcrypt.c
898         dissectors/packet-sip.c
899         dissectors/packet-sigcomp.c
900         dissectors/packet-sipfrag.c
901         dissectors/packet-sita.c
902         dissectors/packet-skinny.c
903         dissectors/packet-slimp3.c
904         dissectors/packet-sll.c
905         dissectors/packet-slowprotocols.c
906         dissectors/packet-slsk.c
907         dissectors/packet-smb-browse.c
908         dissectors/packet-smb-common.c
909         dissectors/packet-smb-logon.c
910         dissectors/packet-smb-mailslot.c
911         dissectors/packet-smb-pipe.c
912         dissectors/packet-smb-sidsnooping.c
913         dissectors/packet-smb.c
914         dissectors/packet-smb2.c
915         dissectors/packet-smpp.c
916         dissectors/packet-smtp.c
917         dissectors/packet-sna.c
918         dissectors/packet-snaeth.c
919         dissectors/packet-sndcp.c
920         dissectors/packet-sndcp-xid.c
921         dissectors/packet-socks.c
922         dissectors/packet-nasdaq-soup.c
923         dissectors/packet-spp.c
924         dissectors/packet-spray.c
925         dissectors/packet-srp.c
926         dissectors/packet-sscf-nni.c
927         dissectors/packet-srvloc.c
928         dissectors/packet-sscop.c
929         dissectors/packet-scriptingservice.c
930         dissectors/packet-ssh.c
931         dissectors/packet-ssl.c
932         dissectors/packet-ssl-utils.c
933         dissectors/packet-starteam.c
934         dissectors/packet-stat-notify.c
935         dissectors/packet-stat.c
936         dissectors/packet-stun.c
937         dissectors/packet-sua.c
938         dissectors/packet-symantec.c
939         dissectors/packet-synergy.c
940         dissectors/packet-synphasor.c
941         dissectors/packet-syslog.c
942         dissectors/packet-t30.c
943         dissectors/packet-t38.c
944         dissectors/packet-tacacs.c
945         dissectors/packet-tali.c
946         dissectors/packet-tapa.c
947         dissectors/packet-tcp.c
948         dissectors/packet-tds.c
949         dissectors/packet-teamspeak2.c
950         dissectors/packet-teimanagement.c
951         dissectors/packet-telnet.c
952         dissectors/packet-teredo.c
953         dissectors/packet-text-media.c
954         dissectors/packet-telkonet.c
955         dissectors/packet-tftp.c
956         dissectors/packet-time.c
957         dissectors/packet-tipc.c
958         dissectors/packet-tivoconnect.c
959         dissectors/packet-tnef.c
960         dissectors/packet-tns.c
961         dissectors/packet-tn3270.c
962         dissectors/packet-tpkt.c
963         dissectors/packet-tpncp.c
964         dissectors/packet-tr.c
965         dissectors/packet-trmac.c
966         dissectors/packet-tsp.c
967         dissectors/packet-tte.c
968         dissectors/packet-tte-pcf.c
969         dissectors/packet-turbocell.c
970         dissectors/packet-turnchannel.c
971         dissectors/packet-tuxedo.c
972         dissectors/packet-tzsp.c
973         dissectors/packet-ucp.c
974         dissectors/packet-udld.c
975         dissectors/packet-uma.c
976         dissectors/packet-udp.c
977         dissectors/packet-usb.c
978         dissectors/packet-usb-masstorage.c
979         dissectors/packet-usb-hid.c
980         dissectors/packet-usb-hub.c
981         dissectors/packet-umts_fp.c
982         dissectors/packet-umts_mac.c
983         dissectors/packet-user_encap.c
984         dissectors/packet-uts.c
985         dissectors/packet-v120.c
986         dissectors/packet-v5ua.c
987         dissectors/packet-v52.c
988         dissectors/packet-vcdu.c
989         dissectors/packet-vicp.c
990         dissectors/packet-vines.c
991         dissectors/packet-vj.c
992         dissectors/packet-vlan.c
993         dissectors/packet-vnc.c
994         dissectors/packet-vrrp.c
995         dissectors/packet-vtp.c
996         dissectors/packet-wap.c
997         dissectors/packet-wassp.c
998         dissectors/packet-wbxml.c
999         dissectors/packet-wccp.c
1000         dissectors/packet-wcp.c
1001         dissectors/packet-wfleet-hdlc.c
1002         dissectors/packet-who.c
1003         dissectors/packet-windows-common.c
1004         dissectors/packet-winsrepl.c
1005         dissectors/packet-wlccp.c
1006         dissectors/packet-wol.c
1007         dissectors/packet-wow.c
1008         dissectors/packet-wps.c
1009         dissectors/packet-wsmp.c
1010         dissectors/packet-wsp.c
1011         dissectors/packet-wtls.c
1012         dissectors/packet-wtp.c
1013         dissectors/packet-x11.c
1014         dissectors/packet-x25.c
1015         dissectors/packet-x29.c
1016         dissectors/packet-xcsl.c
1017         dissectors/packet-xdmcp.c
1018         dissectors/packet-xml.c
1019         dissectors/packet-xot.c
1020         dissectors/packet-xtp.c
1021         dissectors/packet-xyplex.c
1022         dissectors/packet-yhoo.c
1023         dissectors/packet-ymsg.c
1024         dissectors/packet-ypbind.c
1025         dissectors/packet-yppasswd.c
1026         dissectors/packet-ypserv.c
1027         dissectors/packet-ypxfr.c
1028         dissectors/packet-zbee-aps.c
1029         dissectors/packet-zbee-security.c
1030         dissectors/packet-zbee-nwk.c
1031         dissectors/packet-zbee-zcl.c
1032         dissectors/packet-zbee-zdp.c
1033         dissectors/packet-zbee-zdp-binding.c
1034         dissectors/packet-zbee-zdp-discovery.c
1035         dissectors/packet-zbee-zdp-management.c
1036         dissectors/packet-zebra.c
1037         dissectors/packet-zep.c
1038         dissectors/packet-ziop.c
1039         dissectors/packet-zrtp.c
1040 )
1041
1042 # IPMI sub-parsers for each network function code
1043 set(IPMI_SUBPARSERS
1044         dissectors/packet-ipmi-app.c
1045         dissectors/packet-ipmi-bridge.c
1046         dissectors/packet-ipmi-chassis.c
1047         dissectors/packet-ipmi-picmg.c
1048         dissectors/packet-ipmi-se.c
1049         dissectors/packet-ipmi-storage.c
1050         dissectors/packet-ipmi-transport.c
1051         dissectors/packet-ipmi-pps.c
1052         dissectors/packet-ipmi-update.c
1053 )
1054
1055 set(DISSECTOR_SUPPORT_SRC
1056         ${IPMI_SUBPARSERS}
1057         dissectors/packet-dcerpc-nt.c
1058         register.c
1059 )
1060
1061 set(LIBWIRESHARK_ASM_FILES
1062         asm_utils.c
1063 # todo
1064 #       !IFDEF NASM
1065 #       asm_utils_win32_x86.obj: asm_utils_win32_x86.asm
1066 #               $(NASM) -f $(WIRESHARK_TARGET_PLATFORM) -o $@ $?
1067 #       !ENDIF
1068 #       ...
1069 #       !IF defined(NASM) && "$(WIRESHARK_TARGET_PLATFORM)" == "win32"
1070 #               asm_utils_win32_x86.obj
1071 #       !ELSE
1072 #               asm_utils.obj
1073 #       !ENDIF
1074 )
1075
1076 set(DISSECTOR_FILES
1077         ${DISSECTOR_SRC}
1078         ${PIDL_DISSECTOR_SRC}
1079         ${PIDL_DISSECTOR_AUTOGEN_SRC}
1080         ${DIRTY_PIDL_DISSECTOR_SRC}
1081         ${ASN1_DISSECTOR_SRC}
1082         ${DIRTY_ASN1_DISSECTOR_SRC}
1083 )
1084
1085 register_dissector_files(register.c
1086         dissectors
1087         ${DISSECTOR_FILES}
1088 )
1089
1090 set(FTYPE_FILES
1091         ftypes/ftypes.c
1092         ftypes/ftype-bytes.c
1093         ftypes/ftype-double.c
1094         ftypes/ftype-integer.c
1095         ftypes/ftype-ipv4.c
1096         ftypes/ftype-guid.c
1097         ftypes/ftype-none.c
1098         ftypes/ftype-pcre.c
1099         ftypes/ftype-string.c
1100         ftypes/ftype-time.c
1101         ftypes/ftype-tvbuff.c
1102 )
1103
1104 ADD_CUSTOM_COMMAND(
1105     OUTPUT
1106       sminmpec.c
1107     COMMAND ${PERL_EXECUTABLE}
1108       ${CMAKE_SOURCE_DIR}/tools/make-sminmpec.pl
1109       ${CMAKE_CURRENT_SOURCE_DIR}/enterprise-numbers
1110       sminmpec.c
1111     DEPENDS
1112       enterprise-numbers
1113       ${CMAKE_SOURCE_DIR}/tools/make-sminmpec.pl
1114 )
1115
1116 set(LIBWIRESHARK_FILES
1117         addr_and_mask.c
1118         addr_resolv.c
1119         adler32.c
1120         afn.c
1121         asn1.c
1122         atalk-utils.c
1123         base64.c
1124         bitswap.c
1125         camel-persistentdata.c
1126         charsets.c
1127         circuit.c
1128         codecs.c
1129         column.c
1130         column-utils.c
1131         conversation.c
1132         crc10.c
1133         crc16.c
1134         crc32.c
1135         crc6.c
1136         crcdrm.c
1137         dissector_filters.c
1138         emem.c
1139         epan.c
1140         ex-opt.c
1141         except.c
1142         expert.c
1143         filesystem.c
1144         follow.c
1145         frame_data.c
1146         frequency-utils.c
1147         funnel.c
1148         gcp.c
1149         geoip_db.c
1150         golay.c
1151         guid-utils.c
1152         h225-persistentdata.c
1153         in_cksum.c
1154         ipproto.c
1155         ipv4.c
1156         next_tvb.c
1157         nstime.c
1158         oids.c
1159         osi-utils.c
1160         packet.c
1161         plugins.c
1162         prefs.c
1163         proto.c
1164         range.c
1165         reassemble.c
1166         reedsolomon.c
1167         report_err.c
1168         req_resp_hdrs.c
1169         sigcomp_state_hdlr.c
1170         sigcomp-udvm.c
1171         sminmpec.c
1172         sna-utils.c
1173         stat_cmd_args.c
1174         stats_tree.c
1175         strutil.c
1176         stream.c
1177         t35.c
1178         tap.c
1179         tcap-persistentdata.c
1180         timestamp.c
1181         tfs.c
1182         to_str.c
1183         tvbparse.c
1184         tvbuff.c
1185         uat.c
1186         value_string.c
1187         xdlc.c
1188 )
1189
1190 set(LIBWIRESHARK_CLEAN_FILES
1191         ${LIBWIRESHARK_FILES}
1192 )
1193
1194 add_lex_files(LIBWIRESHARK_FILES
1195         diam_dict.l
1196         dtd_parse.l
1197         dtd_preparse.l
1198         radius_dict.l
1199         uat_load.l
1200 )
1201
1202 add_lemon_files(LIBWIRESHARK_FILES
1203         dtd_grammar.lemon
1204 )
1205
1206 set(epan_LIBS
1207         wiretap
1208         wsutil
1209 #       @INET_ATON_LO@
1210 #       @INET_PTON_LO@
1211 #       @INET_NTOP_LO@
1212 #       @SSL_LIBS@
1213         ${PCRE_LIBRARIES}
1214         ${GLIB2_LIBRARIES}
1215         ${PCAP_LIBRARIES}
1216 #       @SOCKET_LIBS@
1217 #       @NSL_LIBS@
1218         ${CARES_LIBRARIES}
1219         ${ADNS_LIBRARIES}
1220         ${KERBEROS_LIBRARIES}
1221 #       @FRAMEWORKS@
1222         ${GEOIP_LIBRARIES}
1223         ${GCRYPT_LIBRARIES}
1224         ${GNUTLS_LIBRARIES}
1225         ${SMI_LIBRARIES}
1226         ${M_LIBRARIES}
1227 )
1228
1229 set(CLEAN_FILES
1230         # Needed to trigger build of the include files for x11
1231         #x11-declarations.h
1232         #x11-register-info.h
1233         ${LIBWIRESHARK_CLEAN_FILES}
1234         ${CRC_FILES}
1235         ${CRYPT_FILES}
1236         ${DFILTER_CLEAN_FILES}
1237         ${FTYPE_FILES}
1238         # ${DISSECTOR_FILES} contains dirty files
1239         ${DISSECTOR_SRC}
1240         ${PIDL_DISSECTOR_SRC}
1241         ${PIDL_DISSECTOR_AUTOGEN_SRC}
1242         ${ASN1_DISSECTOR_SRC}
1243         # ${DISSECTOR_FILES } end
1244         ${DISSECTOR_SUPPORT_SRC}
1245         ${LIBWIRESHARK_ASM_FILES}
1246 )
1247
1248 if (WERROR)
1249         set_source_files_properties(
1250                 ${CLEAN_FILES}
1251                 PROPERTIES
1252                 COMPILE_FLAGS -Werror
1253         )
1254 endif()
1255
1256 add_library(epan SHARED
1257         # Needed to trigger build of the include files for x11
1258         #x11-declarations.h
1259         #x11-register-info.h
1260         ${LIBWIRESHARK_FILES}
1261         ${CRC_FILES}
1262         ${CRYPT_FILES}
1263         ${DFILTER_FILES}
1264         ${FTYPE_FILES}
1265         ${DISSECTOR_FILES}
1266         ${DISSECTOR_SUPPORT_SRC}
1267         ${LIBWIRESHARK_ASM_FILES}
1268 )
1269
1270 # In case we want the libwireshark name back
1271 # SET_TARGET_PROPERTIES(epan PROPERTIES OUTPUT_NAME "wireshark")
1272
1273 target_link_libraries(epan
1274         ${WSLUA_LIB}
1275         ${WSPYTHON_LIB}
1276 )
1277
1278 target_link_libraries(epan ${epan_LIBS})
1279
1280 add_dependencies(epan lemon)
1281
1282 install(TARGETS epan
1283         LIBRARY DESTINATION lib
1284         RUNTIME DESTINATION lib
1285         ARCHIVE DESTINATION lib
1286 )
1287