CMake is a great tool to configure software builds.
We use the code checker cmake-lint to check the CMake files in our projects.
You can install
cmake-lint via pip. During the build configuartion of
C-M.E.S.S. the programm
cmakelint is searched. If the programm
cmakelint was found then you see a message like this:
After build configuration you can use the command
make cmess-cmakelint it will check all CMake files in the project and report style issues. We use the
cmakelint.rc configuration file, found in the root directory of the C-M.E.S.S.
If you are a
vim user here some useful settings:
Plugin 'scrooloose/syntastic' let g:syntastic_cmake_cmakelint_args = '--spaces=4 --config=/home/daniels/cmess/cmakelint.rc'