[CMake] add_custom_command: update dependencies over rebuilds

2015-04-21 Thread kvolkov
Hello, Is there a way to to update add_custom_command dependencies over project rebuilds ? Current status - code generator that builds set of sources taking one input file as parameter - codegen input file may include other input files - already solved task of getting list of output files,

Re: [CMake] ADD_CUSTOM_COMMAND and Dependencies

2011-08-01 Thread Micha Renner
Am Montag, den 25.07.2011, 15:49 +0200 schrieb Michael Wild: On 07/25/2011 03:24 PM, Micha Renner wrote: There is following sequence: ADD_EXECUTEABLE(generator gen.c) ADD_CUSTOM_COMMAND(OUTPUT tlib.h COMMAND generator tlib.h) ADD_LIBRARY(tlib tlib.c tlib.h) The

Re: [CMake] ADD_CUSTOM_COMMAND and Dependencies

2011-08-01 Thread Michael Wild
On 08/01/2011 09:32 AM, Micha Renner wrote: Am Montag, den 25.07.2011, 15:49 +0200 schrieb Michael Wild: On 07/25/2011 03:24 PM, Micha Renner wrote: There is following sequence: ADD_EXECUTEABLE(generator gen.c) ADD_CUSTOM_COMMAND(OUTPUT tlib.h COMMAND generator tlib.h)

[CMake] ADD_CUSTOM_COMMAND and Dependencies

2011-07-25 Thread Micha Renner
There is following sequence: ADD_EXECUTEABLE(generator gen.c) ADD_CUSTOM_COMMAND(OUTPUT tlib.h COMMAND generator tlib.h) ADD_LIBRARY(tlib tlib.c tlib.h) The question: Is it sure that ADD_EXECUTEABLE is invoked before the library is build or is here an ADD_DEPENDENCIES(tlib generator)

Re: [CMake] ADD_CUSTOM_COMMAND and Dependencies

2011-07-25 Thread Michael Wild
On 07/25/2011 03:24 PM, Micha Renner wrote: There is following sequence: ADD_EXECUTEABLE(generator gen.c) ADD_CUSTOM_COMMAND(OUTPUT tlib.h COMMAND generator tlib.h) ADD_LIBRARY(tlib tlib.c tlib.h) The question: Is it sure that ADD_EXECUTEABLE is invoked before the library is

[CMake] ADD_CUSTOM_COMMAND and dependencies

2006-02-09 Thread cedric
Hello, I'm using cmake in a project and have some trouble with ADD_CUSTOM_COMMAND. What I need is generate a source file with a binary previously generated by the project and then add it in the project. It works with this code : MACRO(GENERATE directory) ADD_CUSTOM_COMMAND(