summaryrefslogtreecommitdiffhomepage
path: root/projects/CMake/CMakeLists.txt
diff options
context:
space:
mode:
authorAngga Permana <[email protected]>2022-05-19 18:18:12 +0700
committerGitHub <[email protected]>2022-05-19 13:18:12 +0200
commitd3caee0e723d6b8dd44f418447518045c90c5f95 (patch)
tree6f181097f66eadead8b855c3c817b4a5f09f83d9 /projects/CMake/CMakeLists.txt
parent6259dc4121bf5a5316491f8495f8fff6e054a215 (diff)
downloadraylib-d3caee0e723d6b8dd44f418447518045c90c5f95.tar.gz
raylib-d3caee0e723d6b8dd44f418447518045c90c5f95.zip
generate compile_commands.json to be used by language server (#2481)
* cmake: Generate compile commands * Update README.md simplify build process
Diffstat (limited to 'projects/CMake/CMakeLists.txt')
-rw-r--r--projects/CMake/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/projects/CMake/CMakeLists.txt b/projects/CMake/CMakeLists.txt
index 580ecfed..12af1c54 100644
--- a/projects/CMake/CMakeLists.txt
+++ b/projects/CMake/CMakeLists.txt
@@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 3.11) # FetchContent is available in 3.11+
project(example)
+# Generate compile_commands.json
+set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+
# Dependencies
find_package(raylib 4.0.0 QUIET) # QUIET or REQUIRED
if (NOT raylib_FOUND) # If there's none, fetch and build raylib