Export compile_commands.json for clangd

This commit is contained in:
Felix Suchert 2023-09-17 22:18:15 +02:00
parent eec4245dca
commit a07b6920dc
Signed by: feliix42
GPG key ID: 24363525EA0E8A99
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
build/ build/
.cache/
### C ### ### C ###
# Prerequisites # Prerequisites

View file

@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.20)
set(CMAKE_C_STANDARD 17) set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED True) set(CMAKE_C_STANDARD_REQUIRED True)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
project(Tetris) project(Tetris)
add_executable(Tetris src/tetris.c src/gl.c) add_executable(Tetris src/tetris.c src/gl.c)