Instruct cmake to generate compile_commands.json

The file can be used by additional or custom tooling to run after the
build.
2 jobs for master
Status Job ID Name Coverage
  Build
manual #48937
docker allowed to fail manual
kdeorg/appimage-base
manual #48938
docker allowed to fail manual
kdeorg/staticweb