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:<div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="https://github.com/rpavlik/cmake-modules/blob/master/CppcheckTargets.cmake">https://github.com/rpavlik/cmake-modules/blob/master/CppcheckTargets.cmake</a></div>
<div><br></div><div><a href="https://github.com/rpavlik/cmake-modules/blob/master/CppcheckTargets.cmake"></a>It uses these additional modules (and their dependencies) which are all in my git repo:</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="https://github.com/rpavlik/cmake-modules/blob/master/Findcppcheck.cmake">https://github.com/rpavlik/cmake-modules/blob/master/Findcppcheck.cmake</a></div>
<div><a href="https://github.com/rpavlik/cmake-modules/blob/master/Findcppcheck.cmake"></a><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="https://github.com/rpavlik/cmake-modules/blob/master/Findcppcheck.cpp">https://github.com/rpavlik/cmake-modules/blob/master/Findcppcheck.cpp</a></div>
<div><br></div><div><a href="https://github.com/rpavlik/cmake-modules/blob/master/Findcppcheck.cpp"></a>Not quite the answer you were looking for, I know, and a bit late, but perhaps helpful.</div><div><br></div><div>Ryan<br>
<br><div class="gmail_quote">On Tue, Mar 1, 2011 at 11:57 PM, <span dir="ltr"><<a href="mailto:Mika.Rajala@patria.fi">Mika.Rajala@patria.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><font size="2" face="sans-serif">Hi</font>
<br>
<br><font size="2" face="sans-serif">Is it possible to include static code
analysis to CDash?</font>
<br>
<br><font size="2" face="sans-serif">I could make a test that fails if the
tool detects errors, but I'd like to make something better.</font>
<br>
<br><font size="2" face="sans-serif">Currently I'm testing with the static
code analysis tool CppCheck</font>
<br>
<br><font size="2" face="sans-serif">-mika</font>
<br><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br><br clear="all"><br>-- <br>Ryan Pavlik<br>HCI Graduate Student<br>Virtual Reality Applications Center<br>
Iowa State University<br><br><a href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a><br><a href="http://academic.cleardefinition.com">http://academic.cleardefinition.com</a><br>Internal VRAC/HCI Site: <a href="http://tinyurl.com/rpavlik">http://tinyurl.com/rpavlik</a><br>
</div>