From 1256ab4b843c7bc38947a60a26af679af62c0544 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Wed, 23 Feb 2022 15:15:47 +0100 Subject: [PATCH] scripting: Build generic scripting KCM only with KWIN_BUILD_KCMS Without scripting KCM there is no access to script configuration either Signed-off-by: Eike Hein --- src/scripting/CMakeLists.txt | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/scripting/CMakeLists.txt b/src/scripting/CMakeLists.txt index 1879e6f695..d3d5692db8 100644 --- a/src/scripting/CMakeLists.txt +++ b/src/scripting/CMakeLists.txt @@ -1,11 +1,13 @@ -set(kcm_kwin4_genericscripted_SRCS genericscriptedconfig.cpp) -qt_add_dbus_interface(kcm_kwin4_genericscripted_SRCS ${kwin_effects_dbus_xml} kwineffects_interface) -add_library(kcm_kwin4_genericscripted MODULE ${kcm_kwin4_genericscripted_SRCS}) -target_link_libraries(kcm_kwin4_genericscripted - KF5::ConfigWidgets #KCModule - KF5::I18n - KF5::Service - Qt::DBus - Qt::UiTools -) -install(TARGETS kcm_kwin4_genericscripted DESTINATION ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs) +if (KWIN_BUILD_KCMS) + set(kcm_kwin4_genericscripted_SRCS genericscriptedconfig.cpp) + qt_add_dbus_interface(kcm_kwin4_genericscripted_SRCS ${kwin_effects_dbus_xml} kwineffects_interface) + add_library(kcm_kwin4_genericscripted MODULE ${kcm_kwin4_genericscripted_SRCS}) + target_link_libraries(kcm_kwin4_genericscripted + KF5::ConfigWidgets #KCModule + KF5::I18n + KF5::Service + Qt::DBus + Qt::UiTools + ) + install(TARGETS kcm_kwin4_genericscripted DESTINATION ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs) +endif()