[CMake] string transformation

Hicham Mouline hicham at mouline.org
Sat Jul 3 07:56:07 EDT 2010


Hello

 

I file glob the list of directories and get the result as a list in
MYPROJECT_LIST which is just a string with semicolons.

I'd like to obtain a string that looks like this:

 

(dir1)(dir2)(dir3)(dir4)...

 

that I will then pass as a preprocessor macro to C++ code.

 

Thanks,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100703/c7760f57/attachment-0001.htm>


More information about the CMake mailing list