[CMake] Using quotes in ADD_TEST

Pau Garcia i Quiles pgquiles at elpauer.org
Thu Apr 26 07:18:51 EDT 2007


Hello,

What's the problem with that? CMake parses it fine here (CMake 2.4.6, Linux)

If your problem is after that code you cannot call TEST_COMMAND(),  
maybe you should define it as a macro (cmake --help MACRO).

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to the amount of work, I usually need 10 days to answer)


Quoting Mathieu Malaterre <mathieu.malaterre at gmail.com>:

> Hello,
>
>  Could someone please let me know what is wrong with this:
>
> SET(test_command
>  python -c "\"from mymodule import *\;test_mymodule()\""
> )
> SEPARATE_ARGUMENTS(test_command)
>
> ADD_TEST(PYTHON-TEST-MYMODULE ${test_command})
>
> thanks !
>
> -- 
> Mathieu
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake




More information about the CMake mailing list