Enable exporting IMF traffic as an EML file
[metze/wireshark/wip.git] / ui / CMakeLists.txt
1 # CMakeLists.txt
2 #
3 # Wireshark - Network traffic analyzer
4 # By Gerald Combs <gerald@wireshark.org>
5 # Copyright 1998 Gerald Combs
6 #
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
9 # as published by the Free Software Foundation; either version 2
10 # of the License, or (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21
22
23 set(COMMON_UI_SRC
24         alert_box.c
25         capture.c
26         capture_ui_utils.c
27         commandline.c
28         console.c
29         decode_as_utils.c
30         dissect_opts.c
31         export_object.c
32         export_object_dicom.c
33         export_object_http.c
34         export_object_imf.c
35         export_object_smb.c
36         export_object_tftp.c
37         export_pdu_ui_utils.c
38         help_url.c
39         firewall_rules.c
40         iface_lists.c
41         io_graph_item.c
42         language.c
43         mcast_stream.c
44         packet_list_utils.c
45         persfilepath_opt.c
46         preference_utils.c
47         profile.c
48         proto_hier_stats.c
49         recent.c
50         rtp_media.c
51         rtp_stream.c
52         service_response_time.c
53         software_update.c
54         ssl_key_export.c
55         tap_export_pdu.c
56         tap-iax2-analysis.c
57         tap-rtp-common.c
58         tap-sctp-analysis.c
59         tap-sequence-analysis.c
60         tap-rlc-graph.c
61         tap-tcp-stream.c
62         text_import.c
63         time_shift.c
64         traffic_table_ui.c
65         util.c
66         voip_calls.c
67 )
68
69 # Enables visibility in IDEs
70 file(GLOB EXTRA_UI_HEADERS
71         rtp_media.h
72         rtp_stream.h
73         tap-iax2-analysis.h
74         tap-rtp-analysis.h
75 )
76
77 add_lex_files(LEX_FILES GENERATED_FILES
78         text_import_scanner.l
79 )
80
81 set(CLEAN_FILES
82         ${COMMON_UI_SRC}
83 )
84
85 set_source_files_properties(
86         ${CLEAN_FILES}
87         PROPERTIES
88         COMPILE_FLAGS "${WERROR_COMMON_FLAGS}"
89 )
90
91
92 add_library(ui STATIC
93         ${COMMON_UI_SRC}
94         ${GENERATED_FILES}
95 )
96
97 set_target_properties(ui PROPERTIES COMPILE_OPTIONS "${WS_WARNINGS_C_FLAGS}")
98 set_target_properties(ui PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
99 set_target_properties(ui PROPERTIES FOLDER "UI")
100
101 CHECKAPI(
102         NAME
103           ui-base
104         SWITCHES
105           -g deprecated-gtk
106         SOURCES
107           ${COMMON_UI_SRC}
108 # LEX files commented out due to use of malloc, free etc.
109 #         ${LEX_FILES}
110 )
111 CHECKAPI(
112         NAME
113           ui-todo
114         SWITCHES
115           -M -g deprecated-gtk-todo
116         SOURCES
117           ${COMMON_UI_SRC}
118 # LEX files commented out due to use of malloc, free etc.
119 #         ${LEX_FILES}
120 )
121
122 #
123 # Editor modelines  -  http://www.wireshark.org/tools/modelines.html
124 #
125 # Local variables:
126 # c-basic-offset: 8
127 # tab-width: 8
128 # indent-tabs-mode: t
129 # End:
130 #
131 # vi: set shiftwidth=8 tabstop=8 noexpandtab:
132 # :indentSize=8:tabSize=8:noTabs=false:
133 #