diff --git a/CMakeLists.txt b/CMakeLists.txt index c9364fd..260b63f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,9 @@ project(leetcode) # GoogleTest requires at least C++11 set(CMAKE_CXX_STANDARD 11) +# Export compile commands +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + include(FetchContent) fetchcontent_declare( googletest