[CMake] ADD_TEST and WORKING_DIRECTORY

Michael Wild themiwi at gmail.com
Wed Oct 20 03:05:59 EDT 2010


On 20. Oct, 2010, at 9:01 , Micha Renner wrote:

> Is there a way to specify a WORKING_DIRECTORY for ADD_TEST, similar
> ADD_CUSTOM_COMMAND?
> 
> Greetings
> 
> Micha


No, unfortunately not. You will have to wrap EXECUTE_PROCESS in a CMake script and use that script as the test using "${CMAKE_COMMAND} -P /path/to/script.cmake".

HTH and is not too terse...

Michael

--
There is always a well-known solution to every human problem -- neat, plausible, and wrong.
H. L. Mencken

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101020/4707df4c/attachment.pgp>


More information about the CMake mailing list