[CMake] copy a source file at configure
Leila baghdadi
baghdadi at sickkids.ca
Tue Dec 7 15:07:55 EST 2004
Hi everyone
I was just wondering if anyone knows how to do a following
I need to create a directory and then copy some header files to this
directory before the built
i.e only filename and location changed and the content remains the same
source/A.h-win32 to
source/B/A.h
so I tried MAKE_DIRECTORY(B) and then
CONFIGURE_FILE(source/A.h-win32 source/B/A.h COPYONLY)
but I can not get it to work
I also tried
ADD_CUSTOM_COMMAND(..)
but that was also not successful,
any thoughts
thanks
Leila
More information about the CMake
mailing list