[CMake] Extracting ctest script arguments

Raphael Cotty raphael.cotty at googlemail.com
Wed Jul 25 14:17:12 EDT 2007


Hi,
I am runnig ctest -S test.cmake with arguments (ctest -S
test.cmake,qtopia,Release
for example)
For the moment I use this kind of code to extract the argument:
IF(${CTEST_SCRIP_ARG} MATCHES qtopia)
    SET(QT_TYPE "qtopia")
ENDIF(${CTEST_SCRIP_ARG} MATCHES qtopia)

It works so far but now I'd like to pass a directory name.
The solution might be to generate a list from CTEST_SCRIPT_ARG but I don't
know how to do it.

Any idea?

Thanks
Raphael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070725/135c17fd/attachment.html


More information about the CMake mailing list