Commit 2626a9eb authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Make dependency on KI18n and KTextWidgets explicit

They are already pulled in by KParts, but we better not rely on that
parent 3b73cba7
......@@ -49,6 +49,7 @@ find_package(Qt5Widgets ${QT_MIN_VERSION} CONFIG REQUIRED)
find_package(KF5 ${KF5_DEP_VERSION}
REQUIRED COMPONENTS
I18n
TextWidgets
OPTIONAL_COMPONENTS
DocTools
)
......
add_library(katebacktracebrowserplugin MODULE "")
target_compile_definitions(katebacktracebrowserplugin PRIVATE TRANSLATION_DOMAIN="katebacktracebrowserplugin")
target_link_libraries(katebacktracebrowserplugin PRIVATE KF5::TextEditor)
target_link_libraries(katebacktracebrowserplugin PRIVATE KF5::I18n KF5::TextEditor)
ki18n_wrap_ui(UI_SOURCES btbrowserwidget.ui btconfigwidget.ui)
target_sources(katebacktracebrowserplugin PRIVATE ${UI_SOURCES})
......
......@@ -4,6 +4,7 @@ target_compile_definitions(katecloseexceptplugin PRIVATE TRANSLATION_DOMAIN="kat
target_link_libraries(
katecloseexceptplugin
PRIVATE
KF5::I18n
KF5::TextEditor
)
......
add_library(katecolorpickerplugin MODULE "")
target_compile_definitions(katecolorpickerplugin PRIVATE TRANSLATION_DOMAIN="katecolorpickerplugin")
target_link_libraries(katecolorpickerplugin PRIVATE KF5::TextEditor)
target_link_libraries(katecolorpickerplugin PRIVATE KF5::I18n KF5::TextEditor)
target_sources(
katecolorpickerplugin
......
......@@ -17,5 +17,5 @@ add_executable(externaltools_test
../katetoolrunner.cpp
)
add_test(NAME plugin-externaltools_test COMMAND externaltools_test)
target_link_libraries(externaltools_test PRIVATE Qt5::Test KF5::ConfigCore KF5::CoreAddons KF5::TextEditor)
target_link_libraries(externaltools_test PRIVATE Qt5::Test KF5::I18n KF5::ConfigCore KF5::CoreAddons KF5::TextEditor)
ecm_mark_as_test(externaltools_test)
......@@ -11,6 +11,7 @@ target_compile_definitions(katefilebrowserplugin PRIVATE TRANSLATION_DOMAIN="kat
target_link_libraries(
katefilebrowserplugin
PRIVATE
KF5::I18n
KF5::TextEditor
KF5::KIOFileWidgets
)
......
......@@ -11,6 +11,7 @@ target_compile_definitions(katefiletreeplugin PRIVATE TRANSLATION_DOMAIN="katefi
target_link_libraries(
katefiletreeplugin
PUBLIC
KF5::I18n
KF5::TextEditor
KF5::GuiAddons
)
......
......@@ -8,6 +8,7 @@ target_link_libraries(
filetree_model_test
PRIVATE
KF5::GuiAddons
KF5::I18n
KF5::TextEditor
Qt5::Test
)
......
......@@ -5,7 +5,7 @@ endif()
add_library(kategdbplugin MODULE "")
target_compile_definitions(kategdbplugin PRIVATE TRANSLATION_DOMAIN="kategdbplugin")
target_link_libraries(kategdbplugin PRIVATE KF5::TextEditor)
target_link_libraries(kategdbplugin PRIVATE KF5::I18n KF5::TextEditor)
ki18n_wrap_ui(UI_SOURCES advanced_settings.ui)
target_sources(kategdbplugin PRIVATE ${UI_SOURCES})
......
add_library(kategitblameplugin MODULE "")
target_compile_definitions(kategitblameplugin PRIVATE TRANSLATION_DOMAIN="kategitblameplugin")
target_link_libraries(kategitblameplugin PRIVATE KF5::TextEditor)
target_link_libraries(kategitblameplugin PRIVATE KF5::I18n KF5::TextEditor)
target_sources(
kategitblameplugin
......
add_library(katectagsplugin MODULE "")
target_compile_definitions(katectagsplugin PRIVATE TRANSLATION_DOMAIN="kate-ctags-plugin")
target_link_libraries(katectagsplugin PRIVATE KF5::TextEditor)
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})
......
add_library(katebuildplugin MODULE "")
target_compile_definitions(katebuildplugin PRIVATE TRANSLATION_DOMAIN="katebuild-plugin")
target_link_libraries(katebuildplugin PRIVATE KF5::TextEditor)
target_link_libraries(katebuildplugin PRIVATE KF5::I18n KF5::TextEditor)
ki18n_wrap_ui(UI_SOURCES build.ui SelectTargetUi.ui)
target_sources(katebuildplugin PRIVATE ${UI_SOURCES})
......
......@@ -14,6 +14,7 @@ target_compile_definitions(katesqlplugin PRIVATE TRANSLATION_DOMAIN="katesql")
target_link_libraries(
katesqlplugin
PRIVATE
KF5::I18n
KF5::TextEditor
KF5::Wallet
Qt5::Sql
......
......@@ -4,7 +4,7 @@ endif()
add_library(katekonsoleplugin MODULE "")
target_compile_definitions(katekonsoleplugin PRIVATE TRANSLATION_DOMAIN="katekonsoleplugin")
target_link_libraries(katekonsoleplugin PRIVATE KF5::TextEditor)
target_link_libraries(katekonsoleplugin PRIVATE KF5::I18n KF5::TextEditor)
target_sources(
katekonsoleplugin
......
......@@ -16,6 +16,7 @@ ki18n_wrap_ui(UI_SOURCES lspconfigwidget.ui)
target_link_libraries(
lspclientplugin
PRIVATE
KF5::I18n
KF5::ItemModels
KF5::TextEditor
KF5::SyntaxHighlighting
......
add_library(kateopenheaderplugin MODULE "")
target_compile_definitions(kateopenheaderplugin PRIVATE TRANSLATION_DOMAIN="kateopenheader")
target_link_libraries(kateopenheaderplugin PRIVATE KF5::TextEditor)
target_link_libraries(kateopenheaderplugin PRIVATE KF5::I18n KF5::TextEditor)
target_sources(
kateopenheaderplugin
......
add_library(ktexteditorpreviewplugin MODULE "")
target_compile_definitions(ktexteditorpreviewplugin PRIVATE TRANSLATION_DOMAIN="ktexteditorpreviewplugin")
target_link_libraries(ktexteditorpreviewplugin PRIVATE KF5::TextEditor)
target_link_libraries(ktexteditorpreviewplugin PRIVATE KF5::I18n KF5::TextEditor)
include(ECMQtDeclareLoggingCategory)
ecm_qt_declare_logging_category(
......
......@@ -22,6 +22,7 @@ target_link_libraries(
PRIVATE
Qt5::Concurrent
KF5::GuiAddons
KF5::I18n
KF5::NewStuff
KF5::TextEditor
)
......
......@@ -7,6 +7,7 @@ find_package(Qt5Test ${QT_MIN_VERSION} QUIET REQUIRED)
target_link_libraries(
projectplugin_test
PRIVATE
KF5::I18n
KF5::TextEditor
Qt5::Test
)
......
......@@ -4,6 +4,7 @@ target_compile_definitions(katereplicodeplugin PRIVATE TRANSLATION_DOMAIN="kate-
target_link_libraries(
katereplicodeplugin
PRIVATE
KF5::I18n
KF5::TextEditor
)
......
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