From 70a2fb877ac91f89caa390a6b0fa671668e45ad8 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Sun, 31 Oct 2021 20:49:07 +0100 Subject: [PATCH] Register KWin effect macros for moc Otherwise we get lots of moc warnings about there not being any relevant macro used --- CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d25fe1518..3bd43d3897 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -412,6 +412,19 @@ if (KF5DocTools_FOUND) add_subdirectory(doc) endif() +include(ECMSetupQtPluginMacroNames) +ecm_setup_qtplugin_macro_names( + JSON_ARG2 + "KWIN_EFFECT_FACTORY" + JSON_ARG3 + "KWIN_EFFECT_FACTORY_ENABLED" + "KWIN_EFFECT_FACTORY_SUPPORTED" + JSON_ARG4 + "KWIN_EFFECT_FACTORY_SUPPORTED_ENABLED" + CONFIG_CODE_VARIABLE + PACKAGE_SETUP_AUTOMOC_VARIABLES +) + add_subdirectory(data) add_subdirectory(kconf_update) add_subdirectory(src)