2012-02-02 08:55:00 +00:00
|
|
|
# CMakeLists.txt
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
|
|
# Copyright 1998 Gerald Combs
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2012-02-02 08:55:00 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# All .h files which inherit from QObject aka which use the Q_OBJECT macro
|
|
|
|
# need to go here.
|
|
|
|
set(QTSHARK_H_SRC
|
2012-12-18 17:21:20 +00:00
|
|
|
accordion_frame.h
|
2012-02-02 08:55:00 +00:00
|
|
|
byte_view_tab.h
|
|
|
|
byte_view_text.h
|
|
|
|
capture_file_dialog.h
|
2013-08-08 00:26:57 +00:00
|
|
|
capture_filter_combo.h
|
|
|
|
capture_filter_edit.h
|
|
|
|
capture_filter_syntax_worker.h
|
2012-02-02 08:55:00 +00:00
|
|
|
capture_info_dialog.h
|
|
|
|
capture_interface_dialog.h
|
2013-07-23 11:20:45 +00:00
|
|
|
capture_preferences_frame.h
|
2012-02-02 08:55:00 +00:00
|
|
|
color_dialog.h
|
|
|
|
color_utils.h
|
2013-01-23 19:04:36 +00:00
|
|
|
column_preferences_frame.h
|
2012-02-02 08:55:00 +00:00
|
|
|
display_filter_combo.h
|
|
|
|
display_filter_edit.h
|
2013-07-25 23:49:47 +00:00
|
|
|
elided_label.h
|
2012-10-12 23:40:29 +00:00
|
|
|
export_dissection_dialog.h
|
2012-10-18 22:20:36 +00:00
|
|
|
export_object_dialog.h
|
2012-10-01 22:40:20 +00:00
|
|
|
file_set_dialog.h
|
2013-02-06 19:03:23 +00:00
|
|
|
filter_expressions_preferences_frame.h
|
2013-01-24 01:10:12 +00:00
|
|
|
font_color_preferences_frame.h
|
2012-09-18 00:40:10 +00:00
|
|
|
import_text_dialog.h
|
2012-02-02 08:55:00 +00:00
|
|
|
interface_tree.h
|
|
|
|
label_stack.h
|
2013-01-21 05:29:14 +00:00
|
|
|
layout_preferences_frame.h
|
2012-02-02 08:55:00 +00:00
|
|
|
main_status_bar.h
|
|
|
|
main_welcome.h
|
|
|
|
main_window.h
|
2013-01-19 00:57:57 +00:00
|
|
|
main_window_preferences_frame.h
|
2013-02-08 01:30:31 +00:00
|
|
|
module_preferences_scroll_area.h
|
2012-12-23 04:37:58 +00:00
|
|
|
packet_comment_dialog.h
|
2012-10-12 23:40:29 +00:00
|
|
|
packet_format_group_box.h
|
2012-02-02 08:55:00 +00:00
|
|
|
packet_list.h
|
|
|
|
packet_list_model.h
|
2012-10-08 20:01:59 +00:00
|
|
|
packet_range_group_box.h
|
2013-01-05 02:30:58 +00:00
|
|
|
preferences_dialog.h
|
2012-11-01 20:57:45 +00:00
|
|
|
print_dialog.h
|
2012-12-29 02:58:56 +00:00
|
|
|
profile_dialog.h
|
2012-07-20 10:35:51 +00:00
|
|
|
progress_bar.h
|
2012-02-02 08:55:00 +00:00
|
|
|
proto_tree.h
|
2013-08-27 20:24:20 +00:00
|
|
|
qcustomplot.h
|
2012-02-02 08:55:00 +00:00
|
|
|
recent_file_status.h
|
2012-12-15 01:04:39 +00:00
|
|
|
search_frame.h
|
2013-07-23 11:20:45 +00:00
|
|
|
simple_dialog_qt.h
|
2012-11-05 03:54:21 +00:00
|
|
|
splash_overlay.h
|
2013-07-23 11:20:45 +00:00
|
|
|
summary_dialog.h
|
2012-10-09 00:54:40 +00:00
|
|
|
syntax_line_edit.h
|
2013-08-27 18:13:20 +00:00
|
|
|
tcp_stream_dialog.h
|
2012-12-23 03:45:35 +00:00
|
|
|
time_shift_dialog.h
|
2013-07-25 23:49:47 +00:00
|
|
|
uat_dialog.h
|
2012-02-02 08:55:00 +00:00
|
|
|
wireshark_application.h
|
2012-02-02 12:04:22 +00:00
|
|
|
|
|
|
|
# No Q_OBJECT:
|
|
|
|
# packet_list_record.h
|
|
|
|
# qt_ui_utils.h
|
2013-07-08 16:54:18 +00:00
|
|
|
# related_packet_delegate.h
|
2013-04-25 22:11:40 +00:00
|
|
|
# sparkline_delegate.h
|
2012-02-02 08:55:00 +00:00
|
|
|
)
|
|
|
|
|
2013-07-23 12:20:33 +00:00
|
|
|
set(CLEAN_FILES
|
2012-12-18 17:21:20 +00:00
|
|
|
accordion_frame.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
byte_view_tab.cpp
|
|
|
|
byte_view_text.cpp
|
|
|
|
capture_file_dialog.cpp
|
2013-08-08 00:26:57 +00:00
|
|
|
capture_filter_combo.cpp
|
|
|
|
capture_filter_edit.cpp
|
|
|
|
capture_filter_syntax_worker.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
capture_info_dialog.cpp
|
|
|
|
capture_interface_dialog.cpp
|
|
|
|
color_dialog.cpp
|
|
|
|
color_utils.cpp
|
2013-02-01 00:14:15 +00:00
|
|
|
capture_preferences_frame.cpp
|
2013-01-23 19:04:36 +00:00
|
|
|
column_preferences_frame.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
display_filter_combo.cpp
|
|
|
|
display_filter_edit.cpp
|
2013-07-25 23:49:47 +00:00
|
|
|
elided_label.cpp
|
2012-10-12 23:40:29 +00:00
|
|
|
export_dissection_dialog.cpp
|
2012-10-18 22:20:36 +00:00
|
|
|
export_object_dialog.cpp
|
2012-10-01 22:40:20 +00:00
|
|
|
file_set_dialog.cpp
|
2013-02-06 19:03:23 +00:00
|
|
|
filter_expressions_preferences_frame.cpp
|
2013-01-24 01:10:12 +00:00
|
|
|
font_color_preferences_frame.cpp
|
2012-09-18 00:40:10 +00:00
|
|
|
import_text_dialog.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
interface_tree.cpp
|
|
|
|
label_stack.cpp
|
2013-01-21 05:29:14 +00:00
|
|
|
layout_preferences_frame.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
main.cpp
|
|
|
|
main_status_bar.cpp
|
|
|
|
main_welcome.cpp
|
|
|
|
main_window.cpp
|
2013-01-19 00:57:57 +00:00
|
|
|
main_window_preferences_frame.cpp
|
2012-10-02 18:47:05 +00:00
|
|
|
main_window_slots.cpp
|
2013-02-08 01:30:31 +00:00
|
|
|
module_preferences_scroll_area.cpp
|
2012-12-23 04:37:58 +00:00
|
|
|
packet_comment_dialog.cpp
|
2012-10-12 23:40:29 +00:00
|
|
|
packet_format_group_box.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
packet_list.cpp
|
|
|
|
packet_list_model.cpp
|
2012-10-08 20:01:59 +00:00
|
|
|
packet_range_group_box.cpp
|
2013-01-05 02:30:58 +00:00
|
|
|
preferences_dialog.cpp
|
2012-11-01 20:57:45 +00:00
|
|
|
print_dialog.cpp
|
2012-12-29 02:58:56 +00:00
|
|
|
profile_dialog.cpp
|
2012-07-20 10:35:51 +00:00
|
|
|
progress_bar.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
proto_tree.cpp
|
|
|
|
qt_ui_utils.cpp
|
|
|
|
recent_file_status.cpp
|
2013-07-08 16:54:18 +00:00
|
|
|
related_packet_delegate.cpp
|
2013-08-27 11:19:12 +00:00
|
|
|
search_frame.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
simple_dialog_qt.cpp
|
2013-08-27 11:19:12 +00:00
|
|
|
splash_overlay.cpp
|
2012-08-04 00:31:31 +00:00
|
|
|
sparkline_delegate.cpp
|
2013-07-09 18:08:40 +00:00
|
|
|
summary_dialog.cpp
|
2012-10-08 20:01:59 +00:00
|
|
|
syntax_line_edit.cpp
|
2013-08-27 18:13:20 +00:00
|
|
|
tcp_stream_dialog.cpp
|
2012-12-23 03:45:35 +00:00
|
|
|
time_shift_dialog.cpp
|
2013-07-25 23:49:47 +00:00
|
|
|
uat_dialog.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
wireshark_application.cpp
|
|
|
|
)
|
|
|
|
|
2013-07-23 12:20:33 +00:00
|
|
|
set(DIRTY_FILES
|
|
|
|
packet_list_record.cpp
|
2013-08-27 20:24:20 +00:00
|
|
|
qcustomplot.cpp
|
2012-02-02 08:55:00 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(QTSHARK_UI
|
2013-02-01 00:14:15 +00:00
|
|
|
capture_preferences_frame.ui
|
2013-01-23 19:04:36 +00:00
|
|
|
column_preferences_frame.ui
|
2012-10-18 22:20:36 +00:00
|
|
|
export_object_dialog.ui
|
2012-12-11 21:51:18 +00:00
|
|
|
file_set_dialog.ui
|
2013-02-06 19:03:23 +00:00
|
|
|
filter_expressions_preferences_frame.ui
|
2013-01-24 01:10:12 +00:00
|
|
|
font_color_preferences_frame.ui
|
2012-09-18 00:40:10 +00:00
|
|
|
import_text_dialog.ui
|
2013-01-21 05:29:14 +00:00
|
|
|
layout_preferences_frame.ui
|
2012-08-18 19:40:12 +00:00
|
|
|
main_welcome.ui
|
2012-02-02 08:55:00 +00:00
|
|
|
main_window.ui
|
2013-01-19 00:57:57 +00:00
|
|
|
main_window_preferences_frame.ui
|
2013-02-08 01:30:31 +00:00
|
|
|
module_preferences_scroll_area.ui
|
2012-12-23 04:37:58 +00:00
|
|
|
packet_comment_dialog.ui
|
2012-10-12 23:40:29 +00:00
|
|
|
packet_format_group_box.ui
|
2012-10-08 20:01:59 +00:00
|
|
|
packet_range_group_box.ui
|
2013-01-05 02:30:58 +00:00
|
|
|
preferences_dialog.ui
|
2012-11-01 20:57:45 +00:00
|
|
|
print_dialog.ui
|
2012-12-29 02:58:56 +00:00
|
|
|
profile_dialog.ui
|
2012-12-15 01:04:39 +00:00
|
|
|
search_frame.ui
|
2012-11-05 03:54:21 +00:00
|
|
|
splash_overlay.ui
|
2013-08-27 11:19:12 +00:00
|
|
|
summary_dialog.ui
|
2013-08-27 18:13:20 +00:00
|
|
|
tcp_stream_dialog.ui
|
2012-12-23 03:45:35 +00:00
|
|
|
time_shift_dialog.ui
|
2013-07-25 23:49:47 +00:00
|
|
|
uat_dialog.ui
|
2012-02-02 08:55:00 +00:00
|
|
|
)
|
|
|
|
|
2012-02-03 17:40:55 +00:00
|
|
|
set(QTSHARK_QRC
|
2012-08-01 18:27:57 +00:00
|
|
|
../../image/display_filter.qrc
|
2013-01-21 16:58:33 +00:00
|
|
|
../../image/layout.qrc
|
2012-08-01 18:27:57 +00:00
|
|
|
../../image/status.qrc
|
|
|
|
../../image/toolbar.qrc
|
2012-03-07 10:23:50 +00:00
|
|
|
i18n.qrc
|
2012-02-03 17:40:55 +00:00
|
|
|
welcome.qrc
|
|
|
|
)
|
|
|
|
|
2012-03-07 10:23:50 +00:00
|
|
|
set(QTSHARK_TS
|
2012-07-20 11:59:25 +00:00
|
|
|
qtshark_de.ts
|
2012-03-07 10:23:50 +00:00
|
|
|
qtshark_fr.ts
|
|
|
|
)
|
|
|
|
|
2012-02-02 12:38:04 +00:00
|
|
|
include_directories(
|
2013-08-27 11:19:12 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2012-02-02 12:38:04 +00:00
|
|
|
)
|
|
|
|
|
2013-04-25 23:04:19 +00:00
|
|
|
if (QT_VERSION EQUAL 5)
|
|
|
|
QT5_ADD_TRANSLATION(QTSHARK_TS_QM ${QTSHARK_TS})
|
|
|
|
QT5_ADD_RESOURCES(QTSHARK_QRC_SRC ${QTSHARK_QRC})
|
|
|
|
QT5_WRAP_UI(QTSHARK_UI_SRC ${QTSHARK_UI})
|
|
|
|
# For now, do the moc stuff manually
|
|
|
|
QT5_WRAP_CPP(QTSHARK_MOC_SRC ${QTSHARK_H_SRC})
|
|
|
|
# Starting with cmake 2.8.6, we may also use
|
|
|
|
# set(CMAKE_AUTOMOC TRUE)
|
|
|
|
# or
|
|
|
|
# set_target_properties(${some-source-files} PROPERTIES AUTOMOC TRUE)
|
|
|
|
else()
|
|
|
|
QT4_ADD_TRANSLATION(QTSHARK_TS_QM ${QTSHARK_TS})
|
|
|
|
QT4_ADD_RESOURCES(QTSHARK_QRC_SRC ${QTSHARK_QRC})
|
|
|
|
QT4_WRAP_UI(QTSHARK_UI_SRC ${QTSHARK_UI})
|
|
|
|
# For now, do the moc stuff manually
|
|
|
|
QT4_WRAP_CPP(QTSHARK_MOC_SRC ${QTSHARK_H_SRC})
|
|
|
|
# Starting with cmake 2.8.6, we may also use
|
|
|
|
# set(CMAKE_AUTOMOC TRUE)
|
|
|
|
# or
|
|
|
|
# set_target_properties(${some-source-files} PROPERTIES AUTOMOC TRUE)
|
|
|
|
endif()
|
2012-02-02 08:55:00 +00:00
|
|
|
|
2013-07-23 12:20:33 +00:00
|
|
|
set(QTSHARK_SRC
|
|
|
|
${CLEAN_FILES}
|
|
|
|
${DIRTY_FILES}
|
2012-02-02 08:55:00 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if (WERROR)
|
|
|
|
set_source_files_properties(
|
|
|
|
${CLEAN_FILES}
|
|
|
|
PROPERTIES
|
|
|
|
COMPILE_FLAGS -Werror
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2012-08-23 10:30:37 +00:00
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
|
2012-02-02 08:55:00 +00:00
|
|
|
add_library(qtui STATIC
|
|
|
|
${QTSHARK_SRC}
|
|
|
|
${QTSHARK_UI_SRC}
|
|
|
|
${QTSHARK_MOC_SRC}
|
2012-02-03 17:40:55 +00:00
|
|
|
${QTSHARK_QRC_SRC}
|
2012-03-07 10:23:50 +00:00
|
|
|
${QTSHARK_TS_QM}
|
2012-02-02 08:55:00 +00:00
|
|
|
)
|
|
|
|
set_target_properties(qtui PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
|
|
|
|
|