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 <eike.hein@mbition.io>
This commit is contained in:
Kai Uwe Broulik 2022-02-23 15:15:47 +01:00 committed by Kai Uwe Broulik
parent 4a14ac51ed
commit 1256ab4b84

View file

@ -1,3 +1,4 @@
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})
@ -9,3 +10,4 @@ target_link_libraries(kcm_kwin4_genericscripted
Qt::UiTools
)
install(TARGETS kcm_kwin4_genericscripted DESTINATION ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs)
endif()