From c54364a714fc9711b4a2f0cae30ed22fffbb0166 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 25 Dec 2019 00:51:08 +0100 Subject: [PATCH] Add needed LSP requirements --- .gitignore | 1 + CMakeLists.txt | 2 ++ compile_commands.json | 1 + 3 files changed, 4 insertions(+) create mode 120000 compile_commands.json diff --git a/.gitignore b/.gitignore index 4b4b5fd..22b68bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Directories +.clangd/ build/ # Files diff --git a/CMakeLists.txt b/CMakeLists.txt index 5870e56..5ecb522 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,8 @@ set(GAME "game") cmake_minimum_required(VERSION 3.1) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + # Check if the build should include debugging symbols option(DEBUG "" ON) if(DEBUG) diff --git a/compile_commands.json b/compile_commands.json new file mode 120000 index 0000000..25eb4b2 --- /dev/null +++ b/compile_commands.json @@ -0,0 +1 @@ +build/compile_commands.json \ No newline at end of file