cmake -S path/to/your/project -B path/to/build/directory cp path/to/build/directory/compile_commands.json path/to/your/project