From 827f30908a22d214d37e1cea209770481a4a1705 Mon Sep 17 00:00:00 2001 From: Arek Date: Sat, 13 Jun 2026 10:38:13 +0200 Subject: [PATCH] chore: Adds generation of compile_commands.json --- .gitignore | 1 + CMakeLists.txt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 02e2c31..b69f0ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ build/ .vscode/ .cache/ +compile_commands.json diff --git a/CMakeLists.txt b/CMakeLists.txt index e0398aa..70e58b3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,6 @@ -cmake_minimum_required(VERSION 3.10 ) +cmake_minimum_required(VERSION 3.10) set(CMAKE_C_STANDARD 11) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "Generate compile_commands.json for clangd" FORCE) project(wlgol VERSION 0.0.1 DESCRIPTION "Wayland Game Of Life"