From adcf638e2a164b4d96151d0a983b47a2534bdebb Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Mon, 8 Jul 2024 03:56:00 +0300 Subject: [PATCH] enable compile_commands for clangd --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7cd6d1e..8a9216f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,8 @@ project(emerald LANGUAGES C) list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + # dependencies find_package(SDL2 REQUIRED) find_package(SDL2_image REQUIRED)