Re: [CMake] Add_custom_target copying files

2009-02-16 Thread Leopold Palomo Avellaneda
A Dilluns 16 Febrer 2009, Michael Jackson va escriure: > Not sure, it should work. > > Try changing POST_BUILD to PRE_BUILD and see what happens. > > also try printing the variable ${${inputPo}} > > message(STATUS "${inputPo}: ${${inputPo}}") > message(STATUS "inputPo: ${inputPo}") Well, first o

Re: [CMake] Add_custom_target copying files

2009-02-16 Thread Michael Jackson
Not sure, it should work. Try changing POST_BUILD to PRE_BUILD and see what happens. also try printing the variable ${${inputPo}} message(STATUS "${inputPo}: ${${inputPo}}") message(STATUS "inputPo: ${inputPo}") _ Mike Jackson

Re: [CMake] Add_custom_target copying files

2009-02-15 Thread Leopold Palomo Avellaneda
A Diumenge 15 Febrer 2009, Michael Jackson va escriure: > Here is a code snippet from a project that I use that copies some > files to the build directory. Thanks, but my modified version doesn't work and I don't know what's happen macro (GETTEXT_UPDATE_LANG_PO dirOUTpo inputPo ) #mess

Re: [CMake] Add_custom_target copying files

2009-02-15 Thread Michael Jackson
Here is a code snippet from a project that I use that copies some files to the build directory. #-- Copy all the HDF5 files from the test directory into the build directory SET (HDF5_REFERENCE_TEST_FILES tnullspace.h5 family_v1.7_3.h5 family_v1.7_1.h5 mergemsg.h5 tbogus.h5

[CMake] Add_custom_target copying files

2009-02-15 Thread Leopold Palomo Avellaneda
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