Export compile commands

This commit is contained in:
Sainnhe Park 2022-03-21 10:22:27 +08:00
parent e5239dbae7
commit 29138c91a3

View File

@ -4,6 +4,9 @@ project(leetcode)
# GoogleTest requires at least C++11 # GoogleTest requires at least C++11
set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD 11)
# Export compile commands
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include(FetchContent) include(FetchContent)
fetchcontent_declare( fetchcontent_declare(
googletest googletest