enable compile_commands for clangd
This commit is contained in:
1 parent
206a5b7cad
commit
adcf638e2a
1 file changed
+2
@@ -4,6 +4,8 @@ project(emerald LANGUAGES C)
|
|||||||
|
|
||||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
||||||
|
|
||||||
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
find_package(SDL2 REQUIRED)
|
find_package(SDL2 REQUIRED)
|
||||||
find_package(SDL2_image REQUIRED)
|
find_package(SDL2_image REQUIRED)
|
||||||
|
|||||||
Reference in new issue
Block a user