diff options
author | Saturneric <[email protected]> | 2022-01-14 19:07:47 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-01-14 19:07:47 +0000 |
commit | 4071b1399c13a9a5a422e326157cc8aeeecdaf58 (patch) | |
tree | 7a991f3d3c8807878f035c456e5d4d8762bee8a9 /CMakeLists.txt | |
parent | <doc>(core): Start adding comments to code (diff) | |
download | GpgFrontend-4071b1399c13a9a5a422e326157cc8aeeecdaf58.tar.gz GpgFrontend-4071b1399c13a9a5a422e326157cc8aeeecdaf58.zip |
<feat>(project): Generate compile commands.json by default
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 79479739..4153273a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,9 @@ cmake_minimum_required(VERSION 3.16) +# define project project(GpgFrontend VERSION 2.0.4 LANGUAGES CXX) +# show cmake version message(STATUS "GpgFrontend Build Configuration Started CMAKE Version ${CMAKE_VERSION}") INCLUDE(CheckIncludeFiles) @@ -12,6 +14,8 @@ INCLUDE(CheckTypeSize) INCLUDE(CheckLibraryExists) INCLUDE(CheckCXXSourceCompiles) +# generate compile_commands.json +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # options option(GPGFRONTEND_BUILD_TYPE_TEST_CORE |