[CMake] Add_custom_target copying files

Leopold Palomo Avellaneda leo at alaxarxa.net
Sun Feb 15 09:28:01 EST 2009


Hi,

I would like to create a custom target that copy "several" files (one, two or 
n files, but at least one) to a directory. I know how to do it with one file:

add_custom_target(my_copy_target  
${CMAKE_COMMAND} -E copy ${_inputfile} ${dirOUT}/)

but, I really don't know how to do it with a list of files. 

Someone could help me?

Regards,

Leo 

   


More information about the CMake mailing list