From Joerg Mayer

Add i18n to Cmake

svn path=/trunk/; revision=41390
This commit is contained in:
Alexis La Goutte 2012-03-07 10:23:50 +00:00
parent fe840481ec
commit e17397b721
2 changed files with 9 additions and 0 deletions

View File

@ -92,15 +92,22 @@ set(QTSHARK_UI
set(QTSHARK_QRC
display_filter.qrc
i18n.qrc
toolbar.qrc
welcome.qrc
)
set(QTSHARK_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})
@ -132,6 +139,7 @@ add_library(qtui STATIC
${QTSHARK_UI_SRC}
${QTSHARK_MOC_SRC}
${QTSHARK_QRC_SRC}
${QTSHARK_TS_QM}
)
set_target_properties(qtui PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")

View File

@ -264,6 +264,7 @@ WiresharkApplication::WiresharkApplication(int &argc, char **argv) :
wsApp = this;
Q_INIT_RESOURCE(display_filter);
Q_INIT_RESOURCE(i18n);
Q_INIT_RESOURCE(toolbar);
Q_INIT_RESOURCE(welcome);