CPM added and directory structure changed
Switch to using CPM package manager instead of vcpkg as its just a wrapper around cmake and makes things more simple. Switch dependency from spdlog to fmt. Changed the directory structure to match the setup recommended by GitLab
This commit is contained in:
16
cmake/staticanalysis.cmake
Normal file
16
cmake/staticanalysis.cmake
Normal 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()
|
||||
Reference in New Issue
Block a user