Commit c3bf1b81 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Utilize target centric ki18n_wrap_ui method parameter

parent 76e14f66
Pipeline #114839 passed with stage
in 4 minutes and 15 seconds
......@@ -2,9 +2,7 @@ kate_add_plugin(katebacktracebrowserplugin)
target_compile_definitions(katebacktracebrowserplugin PRIVATE TRANSLATION_DOMAIN="katebacktracebrowserplugin")
target_link_libraries(katebacktracebrowserplugin PRIVATE KF5::I18n KF5::TextEditor)
ki18n_wrap_ui(UI_SOURCES btbrowserwidget.ui btconfigwidget.ui)
target_sources(katebacktracebrowserplugin PRIVATE ${UI_SOURCES})
ki18n_wrap_ui(katebacktracebrowserplugin btbrowserwidget.ui btconfigwidget.ui)
target_sources(
katebacktracebrowserplugin
PRIVATE
......
......@@ -8,9 +8,7 @@ target_link_libraries(
KF5::TextEditor
)
ki18n_wrap_ui(UI_SOURCES close_confirm_dialog.ui)
target_sources(katecloseexceptplugin PRIVATE ${UI_SOURCES})
ki18n_wrap_ui(katecloseexceptplugin close_confirm_dialog.ui)
target_sources(
katecloseexceptplugin
PRIVATE
......
......@@ -19,7 +19,7 @@ target_link_libraries(externaltoolsplugin PRIVATE
KF5::I18n
)
ki18n_wrap_ui(UI_SOURCES configwidget.ui
ki18n_wrap_ui(externaltoolsplugin configwidget.ui
tooldialog.ui
toolview.ui
)
......@@ -34,7 +34,6 @@ target_sources(
kateexternaltoolscommand.cpp
kateexternaltoolsconfigwidget.cpp
plugin.qrc
${UI_SOURCES}
)
if (BUILD_TESTING)
......
......@@ -7,8 +7,7 @@ kate_add_plugin(kategdbplugin)
target_compile_definitions(kategdbplugin PRIVATE TRANSLATION_DOMAIN="kategdbplugin")
target_link_libraries(kategdbplugin PRIVATE KF5::I18n KF5::TextEditor)
ki18n_wrap_ui(UI_SOURCES advanced_settings.ui)
target_sources(kategdbplugin PRIVATE ${UI_SOURCES})
ki18n_wrap_ui(kategdbplugin advanced_settings.ui)
target_sources(
kategdbplugin
......
......@@ -2,8 +2,7 @@ kate_add_plugin(katectagsplugin)
target_compile_definitions(katectagsplugin PRIVATE TRANSLATION_DOMAIN="kate-ctags-plugin")
target_link_libraries(katectagsplugin PRIVATE KF5::I18n KF5::TextEditor)
ki18n_wrap_ui(UI_SOURCES kate_ctags.ui CTagsGlobalConfig.ui)
target_sources(katectagsplugin PRIVATE ${UI_SOURCES})
ki18n_wrap_ui(katectagsplugin kate_ctags.ui CTagsGlobalConfig.ui)
include(ECMQtDeclareLoggingCategory)
ecm_qt_declare_logging_category(
......
......@@ -2,8 +2,7 @@ kate_add_plugin(katebuildplugin)
target_compile_definitions(katebuildplugin PRIVATE TRANSLATION_DOMAIN="katebuild-plugin")
target_link_libraries(katebuildplugin PRIVATE KF5::I18n KF5::TextEditor)
ki18n_wrap_ui(UI_SOURCES build.ui SelectTargetUi.ui)
target_sources(katebuildplugin PRIVATE ${UI_SOURCES})
ki18n_wrap_ui(katebuildplugin build.ui SelectTargetUi.ui)
target_sources(
katebuildplugin
......
......@@ -11,8 +11,6 @@ endif()
kate_add_plugin(lspclientplugin)
target_compile_definitions(lspclientplugin PRIVATE TRANSLATION_DOMAIN="lspclient")
ki18n_wrap_ui(UI_SOURCES lspconfigwidget.ui)
target_link_libraries(
lspclientplugin
PRIVATE
......@@ -31,6 +29,7 @@ ecm_qt_declare_logging_category(
)
target_sources(lspclientplugin PRIVATE ${DEBUG_SOURCES})
ki18n_wrap_ui(lspclientplugin lspconfigwidget.ui)
target_sources(
lspclientplugin
PRIVATE
......@@ -50,7 +49,6 @@ target_sources(
${CMAKE_SOURCE_DIR}/shared/quickdialog.cpp # hud dialog
plugin.qrc
${UI_SOURCES}
)
target_include_directories(
......
......@@ -8,8 +8,7 @@ target_link_libraries(
KF5::TextEditor
)
ki18n_wrap_ui(UI_SOURCES config.ui)
target_sources(katereplicodeplugin PRIVATE ${UI_SOURCES})
ki18n_wrap_ui(katereplicodeplugin config.ui)
target_sources(
katereplicodeplugin
......
......@@ -18,8 +18,7 @@ target_link_libraries(
KF5::TextEditor
)
ki18n_wrap_ui(UI_SOURCES search.ui results.ui MatchExportDialog.ui)
target_sources(katesearchplugin PRIVATE ${UI_SOURCES})
ki18n_wrap_ui(katesearchplugin search.ui results.ui MatchExportDialog.ui)
target_sources(
katesearchplugin
......
......@@ -16,8 +16,7 @@ target_link_libraries(
KF5::TextEditor
)
ki18n_wrap_ui(UI_SOURCES snippetview.ui editrepository.ui editsnippet.ui)
target_sources(katesnippetsplugin PRIVATE ${UI_SOURCES})
ki18n_wrap_ui(katesnippetsplugin snippetview.ui editrepository.ui editsnippet.ui)
target_sources(
katesnippetsplugin
......
......@@ -2,8 +2,7 @@ kate_add_plugin(textfilterplugin)
target_compile_definitions(textfilterplugin PRIVATE TRANSLATION_DOMAIN="katetextfilter")
target_link_libraries(textfilterplugin PRIVATE KF5::I18n KF5::TextEditor)
ki18n_wrap_ui(UI_SOURCES textfilterwidget.ui)
target_sources(textfilterplugin PRIVATE ${UI_SOURCES})
ki18n_wrap_ui(textfilterplugin textfilterwidget.ui)
target_sources(
textfilterplugin
......
......@@ -57,8 +57,7 @@ if (TARGET KUserFeedbackWidgets)
target_compile_definitions(kate-lib PUBLIC -DWITH_KUSERFEEDBACK)
endif()
ki18n_wrap_ui(UI_SOURCES ui/sessionconfigwidget.ui session/katesessionmanagedialog.ui)
target_sources(kate-lib PRIVATE ${UI_SOURCES})
ki18n_wrap_ui(kate-lib ui/sessionconfigwidget.ui session/katesessionmanagedialog.ui)
target_sources(
kate-lib
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment