Re: [CMake] Copy two files into one file

2010-07-10 Thread Michael Hertling
On 07/09/2010 06:39 PM, Bo Thorsen wrote: Den 09-07-2010 16:48, Michael Hertling skrev: On 07/09/2010 03:48 PM, Bo Thorsen wrote: Hi all, Is there an elegant way of copying two files into one? Right now, I have this: ADD_CUSTOM_COMMAND(OUTPUT privilege_tables.sql

[CMake] Copy two files into one file

2010-07-09 Thread Bo Thorsen
Hi all, Is there an elegant way of copying two files into one? Right now, I have this: ADD_CUSTOM_COMMAND(OUTPUT privilege_tables.sql COMMAND copy /b ${CMAKE_CURRENT_SOURCE_DIR}/system_tables.sql +

Re: [CMake] Copy two files into one file

2010-07-09 Thread Michael Hertling
On 07/09/2010 03:48 PM, Bo Thorsen wrote: Hi all, Is there an elegant way of copying two files into one? Right now, I have this: ADD_CUSTOM_COMMAND(OUTPUT privilege_tables.sql COMMAND copy /b ${CMAKE_CURRENT_SOURCE_DIR}/system_tables.sql

Re: [CMake] Copy two files into one file

2010-07-09 Thread Bo Thorsen
Den 09-07-2010 16:48, Michael Hertling skrev: On 07/09/2010 03:48 PM, Bo Thorsen wrote: Hi all, Is there an elegant way of copying two files into one? Right now, I have this: ADD_CUSTOM_COMMAND(OUTPUT privilege_tables.sql COMMAND copy /b

Re: [CMake] Copy two files into one file

2010-07-09 Thread Tyler Roscoe
On Fri, Jul 09, 2010 at 06:39:57PM +0200, Bo Thorsen wrote: Does this also work with binary files? From the documentation on FILE, this isn't really clear to me. Why don't you try it and let us know? tyler ___ Powered by www.kitware.com Visit

Re: [CMake] Copy two files into one file

2010-07-09 Thread Rolf Eike Beer
Am Friday 09 July 2010 schrieb Bo Thorsen: The problem with this is that the Windows copy command wants \ instead of /. If I have to do the replacement, is there a better way to do this than to use the STRING command with a char replace? FILE(TO_NATIVE_PATH path result) HTH Eike