Refactor RTD stats.
[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         console.c
28         decode_as_utils.c
29         export_object.c
30         export_object_dicom.c
31         export_object_http.c
32         export_object_smb.c
33         export_object_tftp.c
34         filters.c
35         follow.c
36         help_url.c
37         iface_lists.c
38         io_graph_item.c
39         language.c
40         mcast_stream.c
41         packet_list_utils.c
42         persfilepath_opt.c
43         preference_utils.c
44         profile.c
45         proto_hier_stats.c
46         recent.c
47         rtp_stream.c
48         software_update.c
49         ssl_key_export.c
50         tap_export_pdu.c
51         tap-rtp-common.c
52         tap-sctp-analysis.c
53         tap-sequence-analysis.c
54         tap-tcp-stream.c
55         text_import.c
56         time_shift.c
57         traffic_table_ui.c
58         util.c
59         voip_calls.c
60 )
61
62 # Enables visibility in IDEs
63 file(GLOB EXTRA_UI_HEADERS
64         rtp_analysis.h
65         rtp_stream.h
66 )
67
68 set(DIRTY_UI_SRC)
69
70 add_lex_files(DIRTY_UI_SRC
71         text_import_scanner.l
72 )
73
74 set(CLEAN_FILES
75         ${COMMON_UI_SRC}
76 )
77
78 if (WERROR)
79         set_source_files_properties(
80                 ${CLEAN_FILES}
81                 PROPERTIES
82                 COMPILE_FLAGS -Werror
83         )
84 endif()
85
86
87 add_library(ui STATIC
88         ${COMMON_UI_SRC}
89         ${DIRTY_UI_SRC}
90 )
91
92 set_target_properties(ui PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
93 set_target_properties(ui PROPERTIES FOLDER "UI")