Re: [CMake] adding files to a custom target

2008-10-03 Thread Timenkov Yuri
On Thu, Oct 2, 2008 at 6:41 PM, Jesse Corrington <[EMAIL PROTECTED] > wrote: > Ok, I got a little further, but still not exactly what I wanted. I had some > sloppy quotes after doing a poor job of converting my old post build step > into this new way of doing things. It is now partially functional

Re: [CMake] adding files to a custom target

2008-10-02 Thread Jesse Corrington
Ok, I got a little further, but still not exactly what I wanted. I had some sloppy quotes after doing a poor job of converting my old post build step into this new way of doing things. It is now partially functional. I can compile the script if I right click on the project and do build. I have two

Re: [CMake] adding files to a custom target

2008-10-02 Thread Jesse Corrington
I have been playing around with this, and can't seem to figure it out. My project gets created, but it doesn't compile the script and in visual studio the script is not listed under the project in the solution explorer. There is a .rule file, which almost points to my script, but has a strange path

Re: [CMake] adding files to a custom target

2008-09-24 Thread Timenkov Yuri
Use add_custom_command to compile your files. This one accepts source and destination file names for proper dependency handling. Next, use add_custom_target command with dependencies on add_custom_target's output. For example: add_custom_command(OUTPUT myscript.compiled COMMAND compile_script mysc

[CMake] adding files to a custom target

2008-09-22 Thread Jesse Corrington
I'm trying to create a custom target for compiling scripts in MSVC, but I can't seem to find anyway to add the files to the project when using ADD_CUSTOM_TARGET. I just want to be able to add files to a custom target project and then specify a post build step to compile the scripts with our interna

[CMake] Adding files to a Custom target

2008-04-24 Thread Dieter Rosch
Hi, Is there a way to add files to a custom target? This may sound a little silly, but I do have a valid reason for it J We have a custom target called "codegen". What we've done, is to add all the output files from our code generators as dependencies of "codegen". We then make any project