Export compile_commands.json for clangd
This commit is contained in:
parent
eec4245dca
commit
a07b6920dc
2 changed files with 3 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
|||
build/
|
||||
.cache/
|
||||
|
||||
### C ###
|
||||
# Prerequisites
|
||||
|
|
|
@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.20)
|
|||
set(CMAKE_C_STANDARD 17)
|
||||
set(CMAKE_C_STANDARD_REQUIRED True)
|
||||
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
project(Tetris)
|
||||
|
||||
add_executable(Tetris src/tetris.c src/gl.c)
|
||||
|
|
Loading…
Reference in a new issue