5 # Wireshark - Network traffic analyzer
6 # By Gerald Combs <gerald@wireshark.org>
7 # Copyright 1998 Gerald Combs
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 # All .h files which inherit from QObject aka which use the Q_OBJECT macro
31 capture_filter_combo.h
33 capture_filter_syntax_worker.h
35 capture_interface_dialog.h
36 capture_preferences_frame.h
39 column_preferences_frame.h
40 display_filter_combo.h
43 export_dissection_dialog.h
44 export_object_dialog.h
46 filter_expressions_preferences_frame.h
47 follow_stream_dialog.h
48 font_color_preferences_frame.h
52 layout_preferences_frame.h
56 main_window_preferences_frame.h
57 module_preferences_scroll_area.h
58 packet_comment_dialog.h
59 packet_format_group_box.h
62 packet_range_group_box.h
80 wireshark_application.h
83 # packet_list_record.h
85 # related_packet_delegate.h
86 # sparkline_delegate.h
93 capture_file_dialog.cpp
94 capture_filter_combo.cpp
95 capture_filter_edit.cpp
96 capture_filter_syntax_worker.cpp
97 capture_info_dialog.cpp
98 capture_interface_dialog.cpp
101 capture_preferences_frame.cpp
102 column_preferences_frame.cpp
103 display_filter_combo.cpp
104 display_filter_edit.cpp
106 export_dissection_dialog.cpp
107 export_object_dialog.cpp
109 filter_expressions_preferences_frame.cpp
110 follow_stream_dialog.cpp
111 font_color_preferences_frame.cpp
112 import_text_dialog.cpp
115 layout_preferences_frame.cpp
120 main_window_preferences_frame.cpp
121 main_window_slots.cpp
122 module_preferences_scroll_area.cpp
123 packet_comment_dialog.cpp
124 packet_format_group_box.cpp
126 packet_list_model.cpp
127 packet_list_record.cpp
128 packet_range_group_box.cpp
129 preferences_dialog.cpp
135 recent_file_status.cpp
136 related_packet_delegate.cpp
142 sparkline_delegate.cpp
145 tcp_stream_dialog.cpp
146 time_shift_dialog.cpp
148 wireshark_application.cpp
156 capture_preferences_frame.ui
157 column_preferences_frame.ui
158 export_object_dialog.ui
160 filter_expressions_preferences_frame.ui
161 follow_stream_dialog.ui
162 font_color_preferences_frame.ui
163 import_text_dialog.ui
164 layout_preferences_frame.ui
167 main_window_preferences_frame.ui
168 module_preferences_scroll_area.ui
169 packet_comment_dialog.ui
170 packet_format_group_box.ui
171 packet_range_group_box.ui
172 preferences_dialog.ui
185 ../../image/display_filter.qrc
186 ../../image/layout.qrc
187 ../../image/status.qrc
188 ../../image/toolbar.qrc
200 ${CMAKE_CURRENT_SOURCE_DIR}
201 ${CMAKE_CURRENT_BINARY_DIR}
204 if (QT_VERSION EQUAL 5)
205 QT5_ADD_TRANSLATION(QTSHARK_TS_QM ${QTSHARK_TS})
206 QT5_ADD_RESOURCES(QTSHARK_QRC_SRC ${QTSHARK_QRC})
207 QT5_WRAP_UI(QTSHARK_UI_SRC ${QTSHARK_UI})
208 # For now, do the moc stuff manually
209 QT5_WRAP_CPP(QTSHARK_MOC_SRC ${QTSHARK_H_SRC})
210 # Starting with cmake 2.8.6, we may also use
211 # set(CMAKE_AUTOMOC TRUE)
213 # set_target_properties(${some-source-files} PROPERTIES AUTOMOC TRUE)
215 QT4_ADD_TRANSLATION(QTSHARK_TS_QM ${QTSHARK_TS})
216 QT4_ADD_RESOURCES(QTSHARK_QRC_SRC ${QTSHARK_QRC})
217 QT4_WRAP_UI(QTSHARK_UI_SRC ${QTSHARK_UI})
218 # For now, do the moc stuff manually
219 QT4_WRAP_CPP(QTSHARK_MOC_SRC ${QTSHARK_H_SRC})
220 # Starting with cmake 2.8.6, we may also use
221 # set(CMAKE_AUTOMOC TRUE)
223 # set_target_properties(${some-source-files} PROPERTIES AUTOMOC TRUE)
232 set_source_files_properties(
235 COMPILE_FLAGS -Werror
237 # The Qt headers generate a ton of shortening errors on 64-bit systems.
238 if (CMAKE_SIZEOF_VOID_P EQUAL 8)
239 set_source_files_properties(
242 COMPILE_FLAGS -Wno-shorten-64-to-32
247 add_definitions(${QT_DEFINITIONS})
249 add_library(qtui STATIC
256 set_target_properties(qtui PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
257 set_target_properties(qtui PROPERTIES FOLDER "UI")