From a07b6920dcf05364f4bc4f3f6ed4770bf24eb0e3 Mon Sep 17 00:00:00 2001 From: Felix Suchert Date: Sun, 17 Sep 2023 22:18:15 +0200 Subject: [PATCH] Export compile_commands.json for clangd --- .gitignore | 1 + CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index fa62da2..adbfd6b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ build/ +.cache/ ### C ### # Prerequisites diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d08401..71537f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)