So I copied and pasted the commands from the readme to install this on Fedora 37 with KDE Plasma 5.27.2, and when it compiled I got the following error
AutoMoc subprocess error
------------------------
The moc process failed to compile
"SRC:/src/plugin.cc"
into
"SRC:/build/src/kwin4_effect_yetanothermagiclamp_autogen/include/plugin.moc"
included by
"SRC:/src/plugin.cc"
Command
-------
/usr/lib64/qt5/bin/moc -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_XML_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -Dkwin4_effect_yetanothermagiclamp_EXPORTS -I/home/sinistra/kwin-effects-yet-another-magic-lamp/build/src -I/home/sinistra/kwin-effects-yet-another-magic-lamp/src -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/lib64/qt5/mkspecs/linux-g++ -I/usr/include/qt5/QtGui -I/usr/include/KF5/KConfig -I/usr/include/KF5/KConfigCore -I/usr/include/KF5 -I/usr/include/KF5/KConfigGui -I/usr/include/qt5/QtXml -I/usr/include/KF5/KCoreAddons -I/usr/include/KF5/KWindowSystem -I/usr/include/qt5/QtWidgets -I/usr/include -I/usr/include/c++/12 -I/usr/include/c++/12/x86_64-redhat-linux -I/usr/include/c++/12/backward -I/usr/lib/gcc/x86_64-redhat-linux/12/include -I/usr/local/include --include /home/sinistra/kwin-effects-yet-another-magic-lamp/build/src/kwin4_effect_yetanothermagiclamp_autogen/moc_predefs.h --output-dep-file -o /home/sinistra/kwin-effects-yet-another-magic-lamp/build/src/kwin4_effect_yetanothermagiclamp_autogen/include/plugin.moc /home/sinistra/kwin-effects-yet-another-magic-lamp/src/plugin.cc
Output
------
/home/sinistra/kwin-effects-yet-another-magic-lamp/src/plugin.cc:21: Parse error at "FILE"
make[2]: *** [src/CMakeFiles/kwin4_effect_yetanothermagiclamp_autogen.dir/build.make:71: src/CMakeFiles/kwin4_effect_yetanothermagiclamp_autogen] Error 1
make[1]: *** [CMakeFiles/Makefile2:197: src/CMakeFiles/kwin4_effect_yetanothermagiclamp_autogen.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
So I copied and pasted the commands from the readme to install this on Fedora 37 with KDE Plasma 5.27.2, and when it compiled I got the following error