Files
CMake/Tests/RunCMake/Cppcheck/C.cmake
Bill Hoffman 311b7b1a70 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.
2017-08-30 10:23:46 -04:00

5 lines
91 B
CMake

enable_language(C)
set(CMAKE_C_CPPCHECK "${PSEUDO_CPPCHECK}")
add_executable(main main.c)