Add properties to run cppcheck along with the compiler

Create a `<LANG>_CPPCHECK` target property (initialized by a
`CMAKE_<LANG>_CPPCHECK` variable) to specify a `cppcheck` command line
to be run along with the compiler.
This commit is contained in:
Bill Hoffman
2017-08-16 12:24:44 -04:00
committed by Brad King
parent fff28e30cd
commit 311b7b1a70
24 changed files with 184 additions and 12 deletions

View File

@@ -0,0 +1,6 @@
CMAKE_<LANG>_CPPCHECK
---------------------
Default value for :prop_tgt:`<LANG>_CPPCHECK` target property. This variable
is used to initialize the property on each target as it is created. This
is done only when ``<LANG>`` is ``C`` or ``CXX``.