mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 23:00:07 -06:00
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.
5 lines
91 B
CMake
5 lines
91 B
CMake
|
|
enable_language(C)
|
|
set(CMAKE_C_CPPCHECK "${PSEUDO_CPPCHECK}")
|
|
add_executable(main main.c)
|