########################################################################################### # # (c) Technical Software Engineering Plazotta 2021 # # CMAKE project main file # # History # 29.09.2019 / Plazotta # Template created. # #----------------------------------------------------------------------------------------- # Define project spezific requierements # # Project name, output file name, project description # set(PROJECT_NAME VS_CODE_ANALYZER) set(PROJECT_DESCRIPTION "TSEP Static Code Analyzer for Visual Studio") # #----------------------------------------------------------------------------------------- # Static Code Analyzer for VS in Windows # # IF (WIN32) add_custom_target(${PROJECT_NAME} COMMAND msbuild $(SolutionDir)/$(SolutionFileName) /m /t:Rebuild /p:RunCodeAnalysis=true /p:CodeAnalysisRuleSet=AllRules.ruleset COMMENT "Running Code Analyzer ..." ) set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "CMakePredefinedTargets") ENDIF (WIN32)