1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 13:41:13 +02:00

Added compile_commands.json

For using clangd we need the compile
database of compile_commands.json
This commit is contained in:
barak diker 2023-04-30 03:12:54 +03:00
parent f0b5bdb1f5
commit 210299b309
2 changed files with 4 additions and 0 deletions

View file

@ -9,6 +9,8 @@ project(
LANGUAGES CXX
)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# ---- Include guards ----
if(PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)

View file

@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.14...3.22)
project(GreeterTests LANGUAGES CXX)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# ---- Options ----
option(ENABLE_TEST_COVERAGE "Enable test coverage" OFF)