cmake: Rework how some features are conditionally compiled into libkwin
In modern CMake code, it's a good thing if targets and properties are preferred over variables as it makes very difficult to make unnoticeable typos, e.g. set(kwin_SRC ${kwin_SRC} activities.cpp)
rather than set(kwin_SRCS ${kwin_SRCS} activities.cpp)
.