[CMake] Handling tests

Piotr Jaroszyński p.jaroszynski at gmail.com
Sat Jul 26 18:15:03 EDT 2008


Hello,

I can't figure out how to add dependencies to tests defined with
ADD_TEST() like:
ADD_EXECUTABLE(foo_TEST foo_TEST.cc)
ADD_TEST(foo_TEST /path/test_wrapper foo_TEST)

Is it possible to somehow tell CMake that this test deps on the target foo_TEST?

Another problem I have is that I can't figure out how to force ctest
to be run with -V when make test'ing.

I'm running cmake 2.4.8 currently and am only interested in Linux if
that matters.

-- 
Best Regards,
Piotr Jaroszyński


More information about the CMake mailing list