From da9ac98dc388060481c0a23386166efc5a6d0043 Mon Sep 17 00:00:00 2001
From: Marco Biasini <marco.biasini@unibas.ch>
Date: Sun, 27 Oct 2013 10:33:12 +0100
Subject: [PATCH] enable creation of compile_commands.json

---
 .gitignore     | 1 +
 CMakeLists.txt | 1 +
 2 files changed, 2 insertions(+)

diff --git a/.gitignore b/.gitignore
index 156016aab..4952c1cd5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -69,3 +69,4 @@ ost_*_tests_log.xml
 rules.ninja
 build.ninja
 modules/gui/src/dngr.qrc.depends
+/compile_commands.json
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e18d6f441..a13110cab 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,6 +4,7 @@
 
 cmake_minimum_required(VERSION 2.6.4 FATAL_ERROR)
 project(OpenStructure CXX C)
+set (CMAKE_EXPORT_COMPILE_COMMANDS 1)
 set (OST_VERSION_MAJOR 1)
 set (OST_VERSION_MINOR 3)
 set (OST_VERSION_PATCH 3)
-- 
GitLab