Skip to content

Commit

Permalink
raddd cppcheck-analysis target
Browse files Browse the repository at this point in the history
  • Loading branch information
ttroy50 committed Nov 17, 2018
1 parent 9bf2dd0 commit 692f3d4
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -111,3 +111,12 @@ mark_as_advanced(
CPPCHECK_SUPPRESSIONS
CPPCHECK_CHECKS_ARGS
CPPCHECK_OTHER_ARGS)

if(CPPCHECK_FOUND)
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/analysis/cppcheck)
add_custom_target(cppcheck-analysis
COMMAND ${CPPCHECK_COMMAND})
message("cppcheck found. Use cppccheck-analysis targets to run it")
else()
message("cppcheck not found. No cppccheck-analysis targets")
endif()

0 comments on commit 692f3d4

Please sign in to comment.