Re: [CMake] Running custom executable

2015-04-08 Thread Daniel Dilts
The issue with the add_custom_command() and DEPENDS is that the custom commands will be in CMakeLists.txt files throughout the solution, and it appears to indicate that that form only works with a target created in the same directory. On Wed, Apr 8, 2015 at 1:12 PM, Alexander Neundorf wrote: > O

Re: [CMake] Running custom executable

2015-04-08 Thread Alexander Neundorf
On Tuesday, April 07, 2015 15:24:18 Daniel Dilts wrote: > Looking at the way these things work, it seems to me that the ideal > solution to my situation, if it is possible, is to do a > add_custom_command() for each source file, and then do a > add_custom_target() that has all of the custom command

Re: [CMake] Running custom executable

2015-04-07 Thread Daniel Dilts
Looking at the way these things work, it seems to me that the ideal solution to my situation, if it is possible, is to do a add_custom_command() for each source file, and then do a add_custom_target() that has all of the custom commands as PRE_BUILD events. Is there a way to pass the list of files

Re: [CMake] Running custom executable

2015-04-07 Thread Alexander Neundorf
On Tuesday, April 07, 2015 13:22:30 you wrote: > > > > I have a custom executable that does some codegen to produce an > > > > > >> > > enumeration and a couple of tables. I need this to be run against > >> > >> each > >> > >> > > source file before actual compilation. It needs include directo

Re: [CMake] Running custom executable

2015-04-07 Thread Daniel Dilts
> > > > I have a custom executable that does some codegen to produce an >> > > enumeration and a couple of tables. I need this to be run against >> each >> > > source file before actual compilation. It needs include directories >> and >> > > macro definitions from the build system. >> > > >> > >

Re: [CMake] Running custom executable

2015-04-07 Thread J Decker
On Tue, Apr 7, 2015 at 12:46 PM, Alexander Neundorf wrote: > On Monday, April 06, 2015 21:19:57 Klaim - Joël Lamotte wrote: > > On Mon, Apr 6, 2015 at 8:47 PM, Daniel Dilts wrote: > > > I have a custom executable that does some codegen to produce an > > > enumeration and a couple of tables. I n

Re: [CMake] Running custom executable

2015-04-07 Thread Alexander Neundorf
On Monday, April 06, 2015 21:19:57 Klaim - Joël Lamotte wrote: > On Mon, Apr 6, 2015 at 8:47 PM, Daniel Dilts wrote: > > I have a custom executable that does some codegen to produce an > > enumeration and a couple of tables. I need this to be run against each > > source file before actual compila

Re: [CMake] Running custom executable

2015-04-06 Thread Klaim - Joël Lamotte
On Mon, Apr 6, 2015 at 8:47 PM, Daniel Dilts wrote: > I have a custom executable that does some codegen to produce an > enumeration and a couple of tables. I need this to be run against each > source file before actual compilation. It needs include directories and > macro definitions from the b

[CMake] Running custom executable

2015-04-06 Thread Daniel Dilts
I have a custom executable that does some codegen to produce an enumeration and a couple of tables. I need this to be run against each source file before actual compilation. It needs include directories and macro definitions from the build system. Is there a way to do this with a CMake build sys