Fix build for pre-ECM CMake install.

The CI infrastructure started failing kdesrc-build after commit
864aa9d4, which I suspect is because the
CI builds and installs kdesrc-build without setting up a KDE buildsystem
(i.e. extra-cmake-modules).

This is supported in kdesrc-build, but the commit that broke the build
adds a reference a variable defined in ECM's KDEInstallDirs macro.

Fixed by adding to the existing compat layer machinery in the existing
CMakeLists.txt (at least, I hope!)
2 jobs for master in 1 minute and 6 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed #14964
smoke-test

00:01:06

passed #14963
unit-test

00:00:31