export clangd configuration

This commit is contained in:
Tim Felgentreff 2020-05-31 10:52:21 +02:00
parent a08dc46768
commit dc67f91560

View file

@ -42,6 +42,9 @@ set(STRATAGUS_PATCH_LEVEL2 0)
project(stratagus)
cmake_minimum_required(VERSION 2.6)
# useful for clangd LSP server
set(CMAKE_EXPORT_COMPILE_COMMANDS, "1")
set(STRATAGUS_VERSION "${STRATAGUS_MAJOR_VERSION}.${STRATAGUS_MINOR_VERSION}.${STRATAGUS_PATCH_LEVEL}")
set(STRATAGUS_VERSION_FULL "${STRATAGUS_VERSION}.${STRATAGUS_PATCH_LEVEL2}")