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
--

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

Reply via email to