Qt: More byte view and proto tree fixes.
[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 set(COMMON_UI_SRC
23         alert_box.c
24         capture.c
25         capture_ui_utils.c
26         commandline.c
27         console.c
28         decode_as_utils.c
29         dissect_opts.c
30         export_object_ui.c
31         export_pdu_ui_utils.c
32         help_url.c
33         failure_message.c
34         filter_files.c
35         firewall_rules.c
36         iface_toolbar.c
37         iface_lists.c
38         io_graph_item.c
39         language.c
40         mcast_stream.c
41         packet_list_utils.c
42         packet_range.c
43         persfilepath_opt.c
44         preference_utils.c
45         profile.c
46         proto_hier_stats.c
47         recent.c
48         rtp_media.c
49         rtp_stream.c
50         service_response_time.c
51         software_update.c
52         ssl_key_export.c
53         tap_export_pdu.c
54         tap-iax2-analysis.c
55         tap-rtp-common.c
56         tap-sctp-analysis.c
57         tap-rlc-graph.c
58         tap-tcp-stream.c
59         text_import.c
60         time_shift.c
61         traffic_table_ui.c
62         util.c
63         voip_calls.c
64 )
65
66 # Enables visibility in IDEs
67 file(GLOB EXTRA_UI_HEADERS
68         rtp_media.h
69         rtp_stream.h
70         tap-iax2-analysis.h
71         tap-rtp-analysis.h
72 )
73
74 add_lex_files(LEX_FILES GENERATED_FILES
75         text_import_scanner.l
76 )
77
78 set(CLEAN_FILES
79         ${COMMON_UI_SRC}
80 )
81
82 set_source_files_properties(
83         ${CLEAN_FILES}
84         PROPERTIES
85         COMPILE_FLAGS "${WERROR_COMMON_FLAGS}"
86 )
87
88
89 add_library(ui STATIC
90         ${COMMON_UI_SRC}
91         ${GENERATED_FILES}
92 )
93
94 set_target_properties(ui PROPERTIES
95         LINK_FLAGS "${WS_LINK_FLAGS}"
96         FOLDER "UI"
97 )
98
99 add_executable(make-taps make-taps.c)
100 # wsutil is only required for glib-compat.c
101 target_link_libraries(make-taps ${GLIB2_LIBRARIES} wsutil)
102
103 if (HTML_HELP_COMPILER)
104         add_definitions(-DHHC_DIR)
105         target_link_libraries(ui Htmlhelp.lib)
106 endif()
107
108 CHECKAPI(
109         NAME
110           ui-base
111         SWITCHES
112           -g deprecated-gtk
113         SOURCES
114           ${COMMON_UI_SRC}
115 # LEX files commented out due to use of malloc, free etc.
116 #         ${LEX_FILES}
117 )
118 CHECKAPI(
119         NAME
120           ui-todo
121         SWITCHES
122           -M -g deprecated-gtk-todo
123         SOURCES
124           ${COMMON_UI_SRC}
125 # LEX files commented out due to use of malloc, free etc.
126 #         ${LEX_FILES}
127 )
128
129 #
130 # Editor modelines  -  http://www.wireshark.org/tools/modelines.html
131 #
132 # Local variables:
133 # c-basic-offset: 8
134 # tab-width: 8
135 # indent-tabs-mode: t
136 # End:
137 #
138 # vi: set shiftwidth=8 tabstop=8 noexpandtab:
139 # :indentSize=8:tabSize=8:noTabs=false:
140 #