Open Windows CHM Help from Help menu.
[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 if (HTML_HELP_COMPILER)
100         add_definitions(-DHHC_DIR)
101         target_link_libraries(ui Htmlhelp.lib)
102 endif()
103
104 CHECKAPI(
105         NAME
106           ui-base
107         SWITCHES
108           -g deprecated-gtk
109         SOURCES
110           ${COMMON_UI_SRC}
111 # LEX files commented out due to use of malloc, free etc.
112 #         ${LEX_FILES}
113 )
114 CHECKAPI(
115         NAME
116           ui-todo
117         SWITCHES
118           -M -g deprecated-gtk-todo
119         SOURCES
120           ${COMMON_UI_SRC}
121 # LEX files commented out due to use of malloc, free etc.
122 #         ${LEX_FILES}
123 )
124
125 #
126 # Editor modelines  -  http://www.wireshark.org/tools/modelines.html
127 #
128 # Local variables:
129 # c-basic-offset: 8
130 # tab-width: 8
131 # indent-tabs-mode: t
132 # End:
133 #
134 # vi: set shiftwidth=8 tabstop=8 noexpandtab:
135 # :indentSize=8:tabSize=8:noTabs=false:
136 #