Initial Commit

* A simple C-Make project setup
* A lot of warnings enabled and warnings as errors
* unit test discovery with google test

In progress functionality
- sanitizers
- static analysis
This commit is contained in:
McMassiveNZ
2022-12-02 19:41:20 +01:00
parent e43ffb5497
commit 5b45b04454
11 changed files with 260 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
include_guard()
function(target_enable_static_analysis _target)
set(_VS_CLANG_TIDY "false")
find_program(CLANGTIDY clang-tidy)
if(CLANGTIDY)
set(_VS_CLANG_TIDY "true")
endif()
set_target_properties(
${_target}
PROPERTIES
VS_GLOBAL_EnableMicrosoftCodeAnalysis true
VS_GLOBAL_CodeAnalysisRuleSet "AllRules.ruleset"
VS_GLOBAL_EnableClangTidyCodeAnalysis "${_VS_CLANG_TIDY}"
)
endfunction()