[CMake] cmake + valgrind + jenkins

Noah Roberts roberts.noah at gmail.com
Sun Jul 15 21:12:55 EDT 2012


I'm very new to CMake and am trying to get a handle on it.  I'm not
entirely sure if what I want to do is built into CMake already or
something I'll need to write some functions/macros for.

I have a Makefile setup where I can run "make check" to run unit tests
and can run "make mem_check" to run those same tests under valgrind.
I would like to get similar behavior from CMake with add_test.

I've set the MEMORYCHECK_COMMAND that seems to activate memory
checking, but from what I can tell it seems the only way to activate
it is with 'ctest -D NightlyMemoryCheck' command.  I would like there
to be a make target.  Is this possible?

I don't know if the jenkins part of this matters but I am trying to
get this all to work with the jenkins valgrind plugin.

-- 
http://crazycpp.wordpress.com
http://crazyeddiesbrain.wordpress.com


More information about the CMake mailing list