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, <[email protected]> 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 [email protected] http://academic.cleardefinition.com Internal VRAC/HCI Site: http://tinyurl.com/rpavlik
_______________________________________________ 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
