Let CMake output compile_commands.json
This commit is contained in:
parent
faeba2bcaa
commit
c718ca70fd
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue