oranges_create_cppcheck_targetΒΆ

include (OrangesCppcheck)

View the full docs for this module.

oranges_create_cppcheck_target ([ENABLE <checks...>]
                                [DISABLE <checks...>]
                                [EXTRA_ARGS <args...>])

Creates a custom target named cppcheck that executes cppcheck over the entire source tree.

If the CPPCHECK_OFF variable is set to ON, this function does nothing.

Note that all arguments are optional. Options:

ENABLE

A list of checks to enable. If not specified, the value of the CPPCHECK_ENABLE variable will be used.

DISABLE

A list of checks to disable. If not specified, the value of the CPPCHECK_DISABLE variable will be used.

EXTRA_ARGS

A list of extra arguments to pass to cppcheck verbatim. If not specified, the value of the CPPCHECK_EXTRA_ARGS variable will be used.