diff --git a/CMakeLists.txt b/CMakeLists.txt index 31cf517..6b09497 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,8 @@ project( LANGUAGES CXX ) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + # ---- Include guards ---- if(PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 74cd08d..702a8c2 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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)