Let CMake output compile_commands.json

This commit is contained in:
hans 2021-10-29 00:13:44 +02:00
parent faeba2bcaa
commit c718ca70fd

View file

@ -10,6 +10,9 @@ add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
add_subdirectory("vendor/SDL")
# some IDEs / text editors require compile_commands.json
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Add source to this project's executable.
add_subdirectory("src")