[Add] Generate compilation database.

This commit is contained in:
Ritchie Cunningham 2025-09-20 01:18:19 +01:00
parent df755ff1f1
commit 13307f4871
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -8,6 +8,7 @@ build/
*.suo
*.user
*.clangd/
.compile_commands.json
# For those messy OS'es that like to put files everywhere.
.DS_Store

View File

@ -19,7 +19,7 @@ build: config
config:
@echo "=== Configuring Project. ==="
@cmake -B $(BUILD_DIR) -S .
@cmake -B $(BUILD_DIR) -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
runc: build
@echo "=== Running Bettola Client. ==="