RE: [CMake] Post Build Custom Copy Command

2007-08-09 Thread Torsten Martinsen
Prashanth Udupa wrote:

 Since copy does not accept file names of the form
D:/SomeFolder/SomOtherFolder/ and only of the form
D:\SomeFolder\SomOtherFolder\, 
 the copy command is failing. How can I make this post build command
work?

Use

COMMAND ${CMAKE_COMMAND} -E copy
${MYLIBRARY_SOURCE_DIR}/lib/release/mylib.dll
${MYLIBRARY_SOURCE_DIR}/bin/release

-Torsten

This e-mail and any files sent with it contain information that may be 
privileged or confidential and is the property of the GateHouse Group. This 
information is intended solely for the person to whom it is addressed. If you 
are not the intended recipient, you are not authorized to read, print, retain, 
copy, disseminate, distribute, or use the message or any part thereof. If you 
have received this e-mail in error, please notify the sender immediately, and 
delete all copies of this message. In accordance with GateHouse Security 
Policy, e-mails sent or received may be monitored. 
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Post Build Custom Copy Command

2007-08-09 Thread Prashanth Udupa
Hi,


COMMAND ${CMAKE_COMMAND} -E copy



Thanks. This worked.

Best Regards,
Prashanth
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Post Build Custom Copy Command

2007-08-09 Thread Brandon Van Every
On 8/9/07, Prashanth Udupa [EMAIL PROTECTED] wrote:
 Hi All,

 I am using a custom post build command.

 ADD_CUSTOM_COMMAND(
 TARGET mylib
 POST_BUILD
 COMMAND copy ARGS
 ${MYLIBRARY_SOURCE_DIR}/lib/release/mylib.dll
 ${MYLIBRARY_SOURCE_DIR}/bin/release
 COMMAND copy ARGS
 ${MYLIBRARY_SOURCE_DIR}/lib/release/mylib.lib
 ${MYLIBRARY_SOURCE_DIR}/lib
 )

 Since copy does not accept file names of the form
 D:/SomeFolder/SomOtherFolder/ and only of the form
 D:\SomeFolder\SomOtherFolder\,
 the copy command is failing. How can I make this post build command work?

As per the docs, FILE(TO_NATIVE_PATH path result) can help with that
sort of thing.  Granted, you'd have to read the docs many many times
before knowing details like that.

${CMAKE_COMMAND} -E copy
is also useful.

Finally, you don't need ARGS statements.  That's old style.


Cheers,
Brandon Van Every
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake