[CMake] Static code analysis with CDash

Ryan Pavlik rpavlik at iastate.edu
Fri Apr 1 14:28:01 EDT 2011


I've used cppcheck as a test that fails in case of errors, and also that
adds a target to run cppcheck. My script is here:
https://github.com/rpavlik/cmake-modules/blob/master/CppcheckTargets.cmake

<https://github.com/rpavlik/cmake-modules/blob/master/CppcheckTargets.cmake>It
uses these additional modules (and their dependencies) which are all in my
git repo:
https://github.com/rpavlik/cmake-modules/blob/master/Findcppcheck.cmake
<https://github.com/rpavlik/cmake-modules/blob/master/Findcppcheck.cmake>
https://github.com/rpavlik/cmake-modules/blob/master/Findcppcheck.cpp

<https://github.com/rpavlik/cmake-modules/blob/master/Findcppcheck.cpp>Not
quite the answer you were looking for, I know, and a bit late, but perhaps
helpful.

Ryan

On Tue, Mar 1, 2011 at 11:57 PM, <Mika.Rajala at patria.fi> wrote:

>
> Hi
>
> Is it possible to include static code analysis to CDash?
>
> I could make a test that fails if the tool detects errors, but I'd like to
> make something better.
>
> Currently I'm testing with the static code analysis tool CppCheck
>
> -mika
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University

rpavlik at iastate.edu
http://academic.cleardefinition.com
Internal VRAC/HCI Site: http://tinyurl.com/rpavlik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110401/7672fe60/attachment.htm>


More information about the CMake mailing list