![Evan Huus](/assets/img/avatar_default.png)
- add some new files to CMakeLists - we do need _U_ for C++ now that we're sharing some headers between C and C++. svn path=/trunk/; revision=45650
167 lines
3.5 KiB
CMake
167 lines
3.5 KiB
CMake
# 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
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
#
|
|
|
|
# All .h files which inherit from QObject aka which use the Q_OBJECT macro
|
|
# need to go here.
|
|
set(QTSHARK_H_SRC
|
|
byte_view_tab.h
|
|
byte_view_text.h
|
|
capture_file_dialog.h
|
|
capture_info_dialog.h
|
|
capture_interface_dialog.h
|
|
color_dialog.h
|
|
color_utils.h
|
|
display_filter_combo.h
|
|
display_filter_edit.h
|
|
export_dissection_dialog.h
|
|
export_object_dialog.h
|
|
file_set_dialog.h
|
|
import_text_dialog.h
|
|
interface_tree.h
|
|
label_stack.h
|
|
main_status_bar.h
|
|
main_welcome.h
|
|
main_window.h
|
|
monospace_font.h
|
|
packet_format_group_box.h
|
|
packet_list.h
|
|
packet_list_model.h
|
|
packet_range_group_box.h
|
|
progress_bar.h
|
|
proto_tree.h
|
|
recent_file_status.h
|
|
simple_dialog_qt.h
|
|
syntax_line_edit.h
|
|
wireshark_application.h
|
|
|
|
# No Q_OBJECT:
|
|
# packet_list_record.h
|
|
# qt_ui_utils.h
|
|
)
|
|
|
|
set(QTSHARK_CPP_SRC
|
|
byte_view_tab.cpp
|
|
byte_view_text.cpp
|
|
capture_file_dialog.cpp
|
|
capture_info_dialog.cpp
|
|
capture_interface_dialog.cpp
|
|
color_dialog.cpp
|
|
color_utils.cpp
|
|
display_filter_combo.cpp
|
|
display_filter_edit.cpp
|
|
export_dissection_dialog.cpp
|
|
export_object_dialog.cpp
|
|
file_set_dialog.cpp
|
|
import_text_dialog.cpp
|
|
interface_tree.cpp
|
|
label_stack.cpp
|
|
main.cpp
|
|
main_status_bar.cpp
|
|
main_welcome.cpp
|
|
main_window.cpp
|
|
main_window_slots.cpp
|
|
monospace_font.cpp
|
|
packet_format_group_box.cpp
|
|
packet_list.cpp
|
|
packet_list_model.cpp
|
|
packet_list_record.cpp
|
|
packet_range_group_box.cpp
|
|
progress_bar.cpp
|
|
proto_tree.cpp
|
|
qt_ui_utils.cpp
|
|
recent_file_status.cpp
|
|
simple_dialog_qt.cpp
|
|
sparkline_delegate.cpp
|
|
syntax_line_edit.cpp
|
|
wireshark_application.cpp
|
|
)
|
|
|
|
set(QTSHARK_SRC
|
|
${QTSHARK_CPP_SRC}
|
|
)
|
|
|
|
set(QTSHARK_UI
|
|
file_set_dialog.ui
|
|
export_object_dialog.ui
|
|
import_text_dialog.ui
|
|
main_welcome.ui
|
|
main_window.ui
|
|
packet_format_group_box.ui
|
|
packet_range_group_box.ui
|
|
)
|
|
|
|
set(QTSHARK_QRC
|
|
../../image/display_filter.qrc
|
|
../../image/status.qrc
|
|
../../image/toolbar.qrc
|
|
i18n.qrc
|
|
welcome.qrc
|
|
)
|
|
|
|
set(QTSHARK_TS
|
|
qtshark_de.ts
|
|
qtshark_fr.ts
|
|
)
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|
|
|
|
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)
|
|
|
|
set(CLEAN_FILES
|
|
${QTSHARK_SRC}
|
|
)
|
|
|
|
if (WERROR)
|
|
set_source_files_properties(
|
|
${CLEAN_FILES}
|
|
PROPERTIES
|
|
COMPILE_FLAGS -Werror
|
|
)
|
|
endif()
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_library(qtui STATIC
|
|
${QTSHARK_SRC}
|
|
${QTSHARK_UI_SRC}
|
|
${QTSHARK_MOC_SRC}
|
|
${QTSHARK_QRC_SRC}
|
|
${QTSHARK_TS_QM}
|
|
)
|
|
set_target_properties(qtui PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
|
|
|