From 4a14ac51ed33b7a57826e9268eaf183bf0c3916e Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Wed, 23 Feb 2022 15:15:20 +0100 Subject: [PATCH] effects: Build effect config only with KWIN_BUILD_KCMS Without effects KCM there is no access to effect configuration either Signed-off-by: Eike Hein --- src/effects/blur/CMakeLists.txt | 24 +++++++++--------- src/effects/desktopgrid/CMakeLists.txt | 30 ++++++++++++----------- src/effects/diminactive/CMakeLists.txt | 24 +++++++++--------- src/effects/glide/CMakeLists.txt | 24 +++++++++--------- src/effects/invert/CMakeLists.txt | 22 +++++++++-------- src/effects/lookingglass/CMakeLists.txt | 26 +++++++++++--------- src/effects/magiclamp/CMakeLists.txt | 24 +++++++++--------- src/effects/magnifier/CMakeLists.txt | 26 +++++++++++--------- src/effects/mouseclick/CMakeLists.txt | 26 +++++++++++--------- src/effects/mousemark/CMakeLists.txt | 26 +++++++++++--------- src/effects/overview/CMakeLists.txt | 4 ++- src/effects/presentwindows/CMakeLists.txt | 26 +++++++++++--------- src/effects/showfps/CMakeLists.txt | 24 +++++++++--------- src/effects/showpaint/CMakeLists.txt | 22 +++++++++-------- src/effects/slide/CMakeLists.txt | 24 +++++++++--------- src/effects/thumbnailaside/CMakeLists.txt | 26 +++++++++++--------- src/effects/trackmouse/CMakeLists.txt | 26 +++++++++++--------- src/effects/wobblywindows/CMakeLists.txt | 24 +++++++++--------- src/effects/zoom/CMakeLists.txt | 26 +++++++++++--------- 19 files changed, 246 insertions(+), 208 deletions(-) diff --git a/src/effects/blur/CMakeLists.txt b/src/effects/blur/CMakeLists.txt index 22a28780de..6c8082433f 100644 --- a/src/effects/blur/CMakeLists.txt +++ b/src/effects/blur/CMakeLists.txt @@ -25,16 +25,18 @@ target_link_libraries(kwin4_effect_blur PRIVATE ####################################### # Config -set(kwin_blur_config_SRCS blur_config.cpp) -ki18n_wrap_ui(kwin_blur_config_SRCS blur_config.ui) -kconfig_add_kcfg_files(kwin_blur_config_SRCS blurconfig.kcfgc) +if (KWIN_BUILD_KCMS) + set(kwin_blur_config_SRCS blur_config.cpp) + ki18n_wrap_ui(kwin_blur_config_SRCS blur_config.ui) + kconfig_add_kcfg_files(kwin_blur_config_SRCS blurconfig.kcfgc) -kwin_add_effect_config(kwin_blur_config ${kwin_blur_config_SRCS}) + kwin_add_effect_config(kwin_blur_config ${kwin_blur_config_SRCS}) -target_link_libraries(kwin_blur_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::I18n - Qt::DBus - KWinEffectsInterface -) + target_link_libraries(kwin_blur_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::I18n + Qt::DBus + KWinEffectsInterface + ) +endif() diff --git a/src/effects/desktopgrid/CMakeLists.txt b/src/effects/desktopgrid/CMakeLists.txt index ca0d1a5c18..9aac0ea1a1 100644 --- a/src/effects/desktopgrid/CMakeLists.txt +++ b/src/effects/desktopgrid/CMakeLists.txt @@ -24,19 +24,21 @@ target_link_libraries(kwin4_effect_desktopgrid PRIVATE ####################################### # Config -set(kwin_desktopgrid_config_SRCS desktopgrid_config.cpp) -ki18n_wrap_ui(kwin_desktopgrid_config_SRCS desktopgrid_config.ui) -kconfig_add_kcfg_files(kwin_desktopgrid_config_SRCS desktopgridconfig.kcfgc) +if (KWIN_BUILD_KCMS) + set(kwin_desktopgrid_config_SRCS desktopgrid_config.cpp) + ki18n_wrap_ui(kwin_desktopgrid_config_SRCS desktopgrid_config.ui) + kconfig_add_kcfg_files(kwin_desktopgrid_config_SRCS desktopgridconfig.kcfgc) -kwin_add_effect_config(kwin_desktopgrid_config ${kwin_desktopgrid_config_SRCS}) + kwin_add_effect_config(kwin_desktopgrid_config ${kwin_desktopgrid_config_SRCS}) -target_link_libraries(kwin_desktopgrid_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::GlobalAccel - KF5::I18n - KF5::XmlGui - Qt::Quick - kwineffects - KWinEffectsInterface -) + target_link_libraries(kwin_desktopgrid_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::GlobalAccel + KF5::I18n + KF5::XmlGui + Qt::Quick + kwineffects + KWinEffectsInterface + ) +endif() diff --git a/src/effects/diminactive/CMakeLists.txt b/src/effects/diminactive/CMakeLists.txt index 2e81e04166..8cc1ca7653 100644 --- a/src/effects/diminactive/CMakeLists.txt +++ b/src/effects/diminactive/CMakeLists.txt @@ -19,16 +19,18 @@ target_link_libraries(kwin4_effect_diminactive PRIVATE ####################################### # Config -set(kwin_diminactive_config_SRCS diminactive_config.cpp) -ki18n_wrap_ui(kwin_diminactive_config_SRCS diminactive_config.ui) -kconfig_add_kcfg_files(kwin_diminactive_config_SRCS diminactiveconfig.kcfgc) +if (KWIN_BUILD_KCMS) + set(kwin_diminactive_config_SRCS diminactive_config.cpp) + ki18n_wrap_ui(kwin_diminactive_config_SRCS diminactive_config.ui) + kconfig_add_kcfg_files(kwin_diminactive_config_SRCS diminactiveconfig.kcfgc) -kwin_add_effect_config(kwin_diminactive_config ${kwin_diminactive_config_SRCS}) + kwin_add_effect_config(kwin_diminactive_config ${kwin_diminactive_config_SRCS}) -target_link_libraries(kwin_diminactive_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::I18n - Qt::DBus - KWinEffectsInterface -) + target_link_libraries(kwin_diminactive_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::I18n + Qt::DBus + KWinEffectsInterface + ) +endif() diff --git a/src/effects/glide/CMakeLists.txt b/src/effects/glide/CMakeLists.txt index 8666266ace..b0bcba8911 100644 --- a/src/effects/glide/CMakeLists.txt +++ b/src/effects/glide/CMakeLists.txt @@ -19,16 +19,18 @@ target_link_libraries(kwin4_effect_glide PRIVATE ####################################### # Config -set(kwin_glide_config_SRCS glide_config.cpp) -ki18n_wrap_ui(kwin_glide_config_SRCS glide_config.ui) -kconfig_add_kcfg_files(kwin_glide_config_SRCS glideconfig.kcfgc) +if (KWIN_BUILD_KCMS) + set(kwin_glide_config_SRCS glide_config.cpp) + ki18n_wrap_ui(kwin_glide_config_SRCS glide_config.ui) + kconfig_add_kcfg_files(kwin_glide_config_SRCS glideconfig.kcfgc) -kwin_add_effect_config(kwin_glide_config ${kwin_glide_config_SRCS}) + kwin_add_effect_config(kwin_glide_config ${kwin_glide_config_SRCS}) -target_link_libraries(kwin_glide_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::I18n - Qt::DBus - KWinEffectsInterface -) + target_link_libraries(kwin_glide_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::I18n + Qt::DBus + KWinEffectsInterface + ) +endif() diff --git a/src/effects/invert/CMakeLists.txt b/src/effects/invert/CMakeLists.txt index c49ce4be78..1e360a2bf0 100644 --- a/src/effects/invert/CMakeLists.txt +++ b/src/effects/invert/CMakeLists.txt @@ -18,15 +18,17 @@ target_link_libraries(kwin4_effect_invert PRIVATE ####################################### # Config -set(kwin_invert_config_SRCS invert_config.cpp) +if (KWIN_BUILD_KCMS) + set(kwin_invert_config_SRCS invert_config.cpp) -kwin_add_effect_config(kwin_invert_config ${kwin_invert_config_SRCS}) + kwin_add_effect_config(kwin_invert_config ${kwin_invert_config_SRCS}) -target_link_libraries(kwin_invert_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::GlobalAccel - KF5::I18n - KF5::XmlGui - KWinEffectsInterface -) + target_link_libraries(kwin_invert_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::GlobalAccel + KF5::I18n + KF5::XmlGui + KWinEffectsInterface + ) +endif() diff --git a/src/effects/lookingglass/CMakeLists.txt b/src/effects/lookingglass/CMakeLists.txt index 6c9bfb2bc1..7f924a5443 100644 --- a/src/effects/lookingglass/CMakeLists.txt +++ b/src/effects/lookingglass/CMakeLists.txt @@ -24,17 +24,19 @@ target_link_libraries(kwin4_effect_lookingglass PRIVATE ####################################### # Config -set(kwin_lookingglass_config_SRCS lookingglass_config.cpp) -ki18n_wrap_ui(kwin_lookingglass_config_SRCS lookingglass_config.ui) -kconfig_add_kcfg_files(kwin_lookingglass_config_SRCS lookingglassconfig.kcfgc) +if (KWIN_BUILD_KCMS) + set(kwin_lookingglass_config_SRCS lookingglass_config.cpp) + ki18n_wrap_ui(kwin_lookingglass_config_SRCS lookingglass_config.ui) + kconfig_add_kcfg_files(kwin_lookingglass_config_SRCS lookingglassconfig.kcfgc) -kwin_add_effect_config(kwin_lookingglass_config ${kwin_lookingglass_config_SRCS}) + kwin_add_effect_config(kwin_lookingglass_config ${kwin_lookingglass_config_SRCS}) -target_link_libraries(kwin_lookingglass_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::GlobalAccel - KF5::I18n - KF5::XmlGui - KWinEffectsInterface -) + target_link_libraries(kwin_lookingglass_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::GlobalAccel + KF5::I18n + KF5::XmlGui + KWinEffectsInterface + ) +endif() diff --git a/src/effects/magiclamp/CMakeLists.txt b/src/effects/magiclamp/CMakeLists.txt index fc74f3c50d..a4e6cc6496 100644 --- a/src/effects/magiclamp/CMakeLists.txt +++ b/src/effects/magiclamp/CMakeLists.txt @@ -19,16 +19,18 @@ target_link_libraries(kwin4_effect_magiclamp PRIVATE ####################################### # Config -set(kwin_magiclamp_config_SRCS magiclamp_config.cpp) -ki18n_wrap_ui(kwin_magiclamp_config_SRCS magiclamp_config.ui) -kconfig_add_kcfg_files(kwin_magiclamp_config_SRCS magiclampconfig.kcfgc) +if (KWIN_BUILD_KCMS) + set(kwin_magiclamp_config_SRCS magiclamp_config.cpp) + ki18n_wrap_ui(kwin_magiclamp_config_SRCS magiclamp_config.ui) + kconfig_add_kcfg_files(kwin_magiclamp_config_SRCS magiclampconfig.kcfgc) -kwin_add_effect_config(kwin_magiclamp_config ${kwin_magiclamp_config_SRCS}) + kwin_add_effect_config(kwin_magiclamp_config ${kwin_magiclamp_config_SRCS}) -target_link_libraries(kwin_magiclamp_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::I18n - Qt::DBus - KWinEffectsInterface -) + target_link_libraries(kwin_magiclamp_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::I18n + Qt::DBus + KWinEffectsInterface + ) +endif() diff --git a/src/effects/magnifier/CMakeLists.txt b/src/effects/magnifier/CMakeLists.txt index a9cfc5e67a..2d456141d3 100644 --- a/src/effects/magnifier/CMakeLists.txt +++ b/src/effects/magnifier/CMakeLists.txt @@ -23,17 +23,19 @@ target_link_libraries(kwin4_effect_magnifier PRIVATE ####################################### # Config -set(kwin_magnifier_config_SRCS magnifier_config.cpp) -ki18n_wrap_ui(kwin_magnifier_config_SRCS magnifier_config.ui) -kconfig_add_kcfg_files(kwin_magnifier_config_SRCS magnifierconfig.kcfgc) +if (KWIN_BUILD_KCMS) + set(kwin_magnifier_config_SRCS magnifier_config.cpp) + ki18n_wrap_ui(kwin_magnifier_config_SRCS magnifier_config.ui) + kconfig_add_kcfg_files(kwin_magnifier_config_SRCS magnifierconfig.kcfgc) -kwin_add_effect_config(kwin_magnifier_config ${kwin_magnifier_config_SRCS}) + kwin_add_effect_config(kwin_magnifier_config ${kwin_magnifier_config_SRCS}) -target_link_libraries(kwin_magnifier_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::GlobalAccel - KF5::I18n - KF5::XmlGui - KWinEffectsInterface -) + target_link_libraries(kwin_magnifier_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::GlobalAccel + KF5::I18n + KF5::XmlGui + KWinEffectsInterface + ) +endif() diff --git a/src/effects/mouseclick/CMakeLists.txt b/src/effects/mouseclick/CMakeLists.txt index 38c479f4ef..ad0874d0fe 100644 --- a/src/effects/mouseclick/CMakeLists.txt +++ b/src/effects/mouseclick/CMakeLists.txt @@ -23,17 +23,19 @@ target_link_libraries(kwin4_effect_mouseclick PRIVATE ########################## ## configurtion dialog ########################## -set(kwin_mouseclick_config_SRCS mouseclick_config.cpp) -ki18n_wrap_ui(kwin_mouseclick_config_SRCS mouseclick_config.ui) -kconfig_add_kcfg_files(kwin_mouseclick_config_SRCS mouseclickconfig.kcfgc) +if (KWIN_BUILD_KCMS) + set(kwin_mouseclick_config_SRCS mouseclick_config.cpp) + ki18n_wrap_ui(kwin_mouseclick_config_SRCS mouseclick_config.ui) + kconfig_add_kcfg_files(kwin_mouseclick_config_SRCS mouseclickconfig.kcfgc) -kwin_add_effect_config(kwin_mouseclick_config ${kwin_mouseclick_config_SRCS}) + kwin_add_effect_config(kwin_mouseclick_config ${kwin_mouseclick_config_SRCS}) -target_link_libraries(kwin_mouseclick_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::GlobalAccel - KF5::I18n - KF5::XmlGui - KWinEffectsInterface -) + target_link_libraries(kwin_mouseclick_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::GlobalAccel + KF5::I18n + KF5::XmlGui + KWinEffectsInterface + ) +endif() diff --git a/src/effects/mousemark/CMakeLists.txt b/src/effects/mousemark/CMakeLists.txt index ede130c959..de00c86b09 100644 --- a/src/effects/mousemark/CMakeLists.txt +++ b/src/effects/mousemark/CMakeLists.txt @@ -22,17 +22,19 @@ target_link_libraries(kwin4_effect_mousemark PRIVATE ####################################### # Config -set(kwin_mousemark_config_SRCS mousemark_config.cpp) -ki18n_wrap_ui(kwin_mousemark_config_SRCS mousemark_config.ui) -kconfig_add_kcfg_files(kwin_mousemark_config_SRCS mousemarkconfig.kcfgc) +if (KWIN_BUILD_KCMS) + set(kwin_mousemark_config_SRCS mousemark_config.cpp) + ki18n_wrap_ui(kwin_mousemark_config_SRCS mousemark_config.ui) + kconfig_add_kcfg_files(kwin_mousemark_config_SRCS mousemarkconfig.kcfgc) -kwin_add_effect_config(kwin_mousemark_config ${kwin_mousemark_config_SRCS}) + kwin_add_effect_config(kwin_mousemark_config ${kwin_mousemark_config_SRCS}) -target_link_libraries(kwin_mousemark_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::GlobalAccel - KF5::I18n - KF5::XmlGui - KWinEffectsInterface -) + target_link_libraries(kwin_mousemark_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::GlobalAccel + KF5::I18n + KF5::XmlGui + KWinEffectsInterface + ) +endif() diff --git a/src/effects/overview/CMakeLists.txt b/src/effects/overview/CMakeLists.txt index 83bb79e956..129a47ff46 100644 --- a/src/effects/overview/CMakeLists.txt +++ b/src/effects/overview/CMakeLists.txt @@ -2,7 +2,9 @@ # # SPDX-License-Identifier: BSD-3-Clause -add_subdirectory(kcm) +if (KWIN_BUILD_KCMS) + add_subdirectory(kcm) +endif() set(overview_SOURCES expoarea.cpp diff --git a/src/effects/presentwindows/CMakeLists.txt b/src/effects/presentwindows/CMakeLists.txt index bfb7700482..f971688d1f 100644 --- a/src/effects/presentwindows/CMakeLists.txt +++ b/src/effects/presentwindows/CMakeLists.txt @@ -27,17 +27,19 @@ target_link_libraries(kwin4_effect_presentwindows PRIVATE ####################################### # Config -set(kwin_presentwindows_config_SRCS presentwindows_config.cpp) -ki18n_wrap_ui(kwin_presentwindows_config_SRCS presentwindows_config.ui) -kconfig_add_kcfg_files(kwin_presentwindows_config_SRCS presentwindowsconfig.kcfgc) +if (KWIN_BUILD_KCMS) + set(kwin_presentwindows_config_SRCS presentwindows_config.cpp) + ki18n_wrap_ui(kwin_presentwindows_config_SRCS presentwindows_config.ui) + kconfig_add_kcfg_files(kwin_presentwindows_config_SRCS presentwindowsconfig.kcfgc) -kwin_add_effect_config(kwin_presentwindows_config ${kwin_presentwindows_config_SRCS}) + kwin_add_effect_config(kwin_presentwindows_config ${kwin_presentwindows_config_SRCS}) -target_link_libraries(kwin_presentwindows_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::GlobalAccel - KF5::I18n - KF5::XmlGui - KWinEffectsInterface -) + target_link_libraries(kwin_presentwindows_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::GlobalAccel + KF5::I18n + KF5::XmlGui + KWinEffectsInterface + ) +endif() diff --git a/src/effects/showfps/CMakeLists.txt b/src/effects/showfps/CMakeLists.txt index cb34889f81..7507de6bbe 100644 --- a/src/effects/showfps/CMakeLists.txt +++ b/src/effects/showfps/CMakeLists.txt @@ -21,16 +21,18 @@ target_link_libraries(kwin4_effect_showfps PRIVATE ####################################### # Config -set(kwin_showfps_config_SRCS showfps_config.cpp) -ki18n_wrap_ui(kwin_showfps_config_SRCS showfps_config.ui) -kconfig_add_kcfg_files(kwin_showfps_config_SRCS showfpsconfig.kcfgc) +if (KWIN_BUILD_KCMS) + set(kwin_showfps_config_SRCS showfps_config.cpp) + ki18n_wrap_ui(kwin_showfps_config_SRCS showfps_config.ui) + kconfig_add_kcfg_files(kwin_showfps_config_SRCS showfpsconfig.kcfgc) -kwin_add_effect_config(kwin_showfps_config ${kwin_showfps_config_SRCS}) + kwin_add_effect_config(kwin_showfps_config ${kwin_showfps_config_SRCS}) -target_link_libraries(kwin_showfps_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::I18n - Qt::DBus - KWinEffectsInterface -) + target_link_libraries(kwin_showfps_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::I18n + Qt::DBus + KWinEffectsInterface + ) +endif() diff --git a/src/effects/showpaint/CMakeLists.txt b/src/effects/showpaint/CMakeLists.txt index 27c33a002f..acd8fadadb 100644 --- a/src/effects/showpaint/CMakeLists.txt +++ b/src/effects/showpaint/CMakeLists.txt @@ -17,15 +17,17 @@ target_link_libraries(kwin4_effect_showpaint PRIVATE ####################################### # Config -set(kwin_showpaint_config_SRCS showpaint_config.cpp) -ki18n_wrap_ui(kwin_showpaint_config_SRCS showpaint_config.ui) +if (KWIN_BUILD_KCMS) + set(kwin_showpaint_config_SRCS showpaint_config.cpp) + ki18n_wrap_ui(kwin_showpaint_config_SRCS showpaint_config.ui) -kwin_add_effect_config(kwin_showpaint_config ${kwin_showpaint_config_SRCS}) + kwin_add_effect_config(kwin_showpaint_config ${kwin_showpaint_config_SRCS}) -target_link_libraries(kwin_showpaint_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::GlobalAccel - KF5::I18n - KF5::XmlGui -) + target_link_libraries(kwin_showpaint_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::GlobalAccel + KF5::I18n + KF5::XmlGui + ) +endif() diff --git a/src/effects/slide/CMakeLists.txt b/src/effects/slide/CMakeLists.txt index 59f379aca8..8a3656e822 100644 --- a/src/effects/slide/CMakeLists.txt +++ b/src/effects/slide/CMakeLists.txt @@ -19,16 +19,18 @@ target_link_libraries(kwin4_effect_slide PRIVATE ####################################### # Config -set(kwin_slide_config_SRCS slide_config.cpp) -ki18n_wrap_ui(kwin_slide_config_SRCS slide_config.ui) -kconfig_add_kcfg_files(kwin_slide_config_SRCS slideconfig.kcfgc) +if (KWIN_BUILD_KCMS) + set(kwin_slide_config_SRCS slide_config.cpp) + ki18n_wrap_ui(kwin_slide_config_SRCS slide_config.ui) + kconfig_add_kcfg_files(kwin_slide_config_SRCS slideconfig.kcfgc) -kwin_add_effect_config(kwin_slide_config ${kwin_slide_config_SRCS}) + kwin_add_effect_config(kwin_slide_config ${kwin_slide_config_SRCS}) -target_link_libraries(kwin_slide_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::I18n - Qt::DBus - KWinEffectsInterface -) + target_link_libraries(kwin_slide_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::I18n + Qt::DBus + KWinEffectsInterface + ) +endif() diff --git a/src/effects/thumbnailaside/CMakeLists.txt b/src/effects/thumbnailaside/CMakeLists.txt index 228c75429e..54ee6f0bb2 100644 --- a/src/effects/thumbnailaside/CMakeLists.txt +++ b/src/effects/thumbnailaside/CMakeLists.txt @@ -22,17 +22,19 @@ target_link_libraries(kwin4_effect_thumbnailaside PRIVATE ####################################### # Config -set(kwin_thumbnailaside_config_SRCS thumbnailaside_config.cpp) -ki18n_wrap_ui(kwin_thumbnailaside_config_SRCS thumbnailaside_config.ui) -kconfig_add_kcfg_files(kwin_thumbnailaside_config_SRCS thumbnailasideconfig.kcfgc) +if (KWIN_BUILD_KCMS) + set(kwin_thumbnailaside_config_SRCS thumbnailaside_config.cpp) + ki18n_wrap_ui(kwin_thumbnailaside_config_SRCS thumbnailaside_config.ui) + kconfig_add_kcfg_files(kwin_thumbnailaside_config_SRCS thumbnailasideconfig.kcfgc) -kwin_add_effect_config(kwin_thumbnailaside_config ${kwin_thumbnailaside_config_SRCS}) + kwin_add_effect_config(kwin_thumbnailaside_config ${kwin_thumbnailaside_config_SRCS}) -target_link_libraries(kwin_thumbnailaside_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::GlobalAccel - KF5::I18n - KF5::XmlGui - KWinEffectsInterface -) + target_link_libraries(kwin_thumbnailaside_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::GlobalAccel + KF5::I18n + KF5::XmlGui + KWinEffectsInterface + ) +endif() diff --git a/src/effects/trackmouse/CMakeLists.txt b/src/effects/trackmouse/CMakeLists.txt index 7d32f1f227..a64197ce2c 100644 --- a/src/effects/trackmouse/CMakeLists.txt +++ b/src/effects/trackmouse/CMakeLists.txt @@ -24,17 +24,19 @@ target_link_libraries(kwin4_effect_trackmouse PRIVATE ####################################### # Config -set(kwin_trackmouse_config_SRCS trackmouse_config.cpp) -ki18n_wrap_ui(kwin_trackmouse_config_SRCS trackmouse_config.ui) -kconfig_add_kcfg_files(kwin_trackmouse_config_SRCS trackmouseconfig.kcfgc) +if (KWIN_BUILD_KCMS) + set(kwin_trackmouse_config_SRCS trackmouse_config.cpp) + ki18n_wrap_ui(kwin_trackmouse_config_SRCS trackmouse_config.ui) + kconfig_add_kcfg_files(kwin_trackmouse_config_SRCS trackmouseconfig.kcfgc) -kwin_add_effect_config(kwin_trackmouse_config ${kwin_trackmouse_config_SRCS}) + kwin_add_effect_config(kwin_trackmouse_config ${kwin_trackmouse_config_SRCS}) -target_link_libraries(kwin_trackmouse_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::GlobalAccel - KF5::I18n - KF5::XmlGui - KWinEffectsInterface -) + target_link_libraries(kwin_trackmouse_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::GlobalAccel + KF5::I18n + KF5::XmlGui + KWinEffectsInterface + ) +endif() diff --git a/src/effects/wobblywindows/CMakeLists.txt b/src/effects/wobblywindows/CMakeLists.txt index 125c6bd5cb..e583923f37 100644 --- a/src/effects/wobblywindows/CMakeLists.txt +++ b/src/effects/wobblywindows/CMakeLists.txt @@ -19,16 +19,18 @@ target_link_libraries(kwin4_effect_wobblywindows PRIVATE ####################################### # Config -set(kwin_wobblywindows_config_SRCS wobblywindows_config.cpp) -ki18n_wrap_ui(kwin_wobblywindows_config_SRCS wobblywindows_config.ui) -kconfig_add_kcfg_files(kwin_wobblywindows_config_SRCS wobblywindowsconfig.kcfgc) +if (KWIN_BUILD_KCMS) + set(kwin_wobblywindows_config_SRCS wobblywindows_config.cpp) + ki18n_wrap_ui(kwin_wobblywindows_config_SRCS wobblywindows_config.ui) + kconfig_add_kcfg_files(kwin_wobblywindows_config_SRCS wobblywindowsconfig.kcfgc) -kwin_add_effect_config(kwin_wobblywindows_config ${kwin_wobblywindows_config_SRCS}) + kwin_add_effect_config(kwin_wobblywindows_config ${kwin_wobblywindows_config_SRCS}) -target_link_libraries(kwin_wobblywindows_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::I18n - Qt::DBus - KWinEffectsInterface -) + target_link_libraries(kwin_wobblywindows_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::I18n + Qt::DBus + KWinEffectsInterface + ) +endif() diff --git a/src/effects/zoom/CMakeLists.txt b/src/effects/zoom/CMakeLists.txt index 0bded88359..cb63006b63 100644 --- a/src/effects/zoom/CMakeLists.txt +++ b/src/effects/zoom/CMakeLists.txt @@ -34,17 +34,19 @@ endif() ####################################### # Config -set(kwin_zoom_config_SRCS zoom_config.cpp) -ki18n_wrap_ui(kwin_zoom_config_SRCS zoom_config.ui) -kconfig_add_kcfg_files(kwin_zoom_config_SRCS zoomconfig.kcfgc) +if (KWIN_BUILD_KCMS) + set(kwin_zoom_config_SRCS zoom_config.cpp) + ki18n_wrap_ui(kwin_zoom_config_SRCS zoom_config.ui) + kconfig_add_kcfg_files(kwin_zoom_config_SRCS zoomconfig.kcfgc) -kwin_add_effect_config(kwin_zoom_config ${kwin_zoom_config_SRCS}) + kwin_add_effect_config(kwin_zoom_config ${kwin_zoom_config_SRCS}) -target_link_libraries(kwin_zoom_config - KF5::ConfigWidgets - KF5::CoreAddons - KF5::GlobalAccel - KF5::I18n - KF5::XmlGui - KWinEffectsInterface -) + target_link_libraries(kwin_zoom_config + KF5::ConfigWidgets + KF5::CoreAddons + KF5::GlobalAccel + KF5::I18n + KF5::XmlGui + KWinEffectsInterface + ) +endif()