abaddon/.lapce/gen_compile_commands.sh
Gustavo Ramos Rehermann 766be2624c
Add compile_commands.json CMake script, and Lapce runners (#302)
* Add Lapce runner to run CMake

This is necessary to generate the compile_commands.json file which
clangd uses to be able to load libaries like gtkmm.

* Move compile_commands generation script into separate file

* Add more Lapce run settings

* Set execute bit on gen_compile_commands.sh

* Move Lapce run files to .lapce
2024-06-26 16:41:11 -04:00

7 lines
200 B
Bash
Executable File

#!/bin/sh
# Use this script to create the compile_commands.json file.
# This is necessary for clangd completion.
cmake . -B build \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_EXPORT_COMPILE_COMMANDS=True