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:
parent
f0b5bdb1f5
commit
210299b309
2 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,8 @@ project(
|
|||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
# ---- Include guards ----
|
||||
|
||||
if(PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue