Re: [CMake] generating source files with ADD_CUSTOM_COMMAND

2010-07-01 Thread Hicham Mouline
That must be it, obvious indeed, Thank you, From: David Cole [mailto:david.c...@kitware.com] Sent: 01 July 2010 20:27 To: Hicham Mouline Cc: cmake@cmake.org Subject: Re: [CMake] generating source files with ADD_CUSTOM_COMMAND Did you build yet? Custom commands are executed at

Re: [CMake] generating source files with ADD_CUSTOM_COMMAND

2010-07-01 Thread David Cole
gt; *Cc:* cmake@cmake.org > *Subject:* Re: [CMake] generating source files with ADD_CUSTOM_COMMAND > > > > I think you mean: > > ${CMAKE_COMMAND} -E copy src dst > > > > You forgot the -E. > > > > > > On Thu, Jul 1, 2010 at 2:38 PM, Hicham Mouline w

Re: [CMake] generating source files with ADD_CUSTOM_COMMAND

2010-07-01 Thread Hicham Mouline
to:david.c...@kitware.com] Sent: 01 July 2010 19:58 To: Hicham Mouline Cc: cmake@cmake.org Subject: Re: [CMake] generating source files with ADD_CUSTOM_COMMAND I think you mean: ${CMAKE_COMMAND} -E copy src dst You forgot the -E. On Thu, Jul 1, 2010 at 2:38 PM, Hicham Mouline wrote:

Re: [CMake] generating source files with ADD_CUSTOM_COMMAND

2010-07-01 Thread Hicham Mouline
From: David Cole [mailto:david.c...@kitware.com] Sent: 01 July 2010 19:58 To: Hicham Mouline Cc: cmake@cmake.org Subject: Re: [CMake] generating source files with ADD_CUSTOM_COMMAND I think you mean: ${CMAKE_COMMAND} -E copy src dst You forgot the -E. _ I'll try

Re: [CMake] generating source files with ADD_CUSTOM_COMMAND

2010-07-01 Thread David Cole
I think you mean: ${CMAKE_COMMAND} -E copy src dst You forgot the -E. On Thu, Jul 1, 2010 at 2:38 PM, Hicham Mouline wrote: > Hello > > I'm trying to generate source files .cxx and include them in ADD_LIBRARY to > build a static library, according to > > http://www.cmake.org/Wiki/CMake_FAQ#How

[CMake] generating source files with ADD_CUSTOM_COMMAND

2010-07-01 Thread Hicham Mouline
Hello I'm trying to generate source files .cxx and include them in ADD_LIBRARY to build a static library, according to http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_generate_a_source_file_during_ the_build.3F # # Copy template source files to *.cxx and place them in the build dir # ADD_CUSTOM_CO