LSP support
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1
compile_commands.json will be written to your build directory. You should
symlink it (or simply copy it) to the root of your source tree, if they are
different:
ln -s ~/myproject/compile_commands.json ~/myproject-build/