Re: [CMake] How to read and compile dynamically-generated list of cpp files

2014-02-05 Thread Matthew Woehlke
On 2014-02-03 11:44, gimmeamilk gimmeamilk wrote: I have a custom tool that processes a given list of IDL files and produces a number of .cpp and .h files as output. I want to add those files to the list of things to compile in my CMakeLists, and also model the dependencies those files have on

[CMake] How to read and compile dynamically-generated list of cpp files

2014-02-03 Thread gimmeamilk gimmeamilk
Hi all, I have a custom tool that processes a given list of IDL files and produces a number of .cpp and .h files as output. I want to add those files to the list of things to compile in my CMakeLists, and also model the dependencies those files have on the IDL. To keep things simple, I will state

Re: [CMake] How to read and compile dynamically-generated list of cpp files

2014-02-03 Thread J Decker
generate a cmake script and include said script? use FILE() command and open the file to read it? On Mon, Feb 3, 2014 at 8:44 AM, gimmeamilk gimmeamilk gimmeamilkb...@googlemail.com wrote: Hi all, I have a custom tool that processes a given list of IDL files and produces a number of .cpp and

Re: [CMake] How to read and compile dynamically-generated list of cpp files

2014-02-03 Thread Gimmeamilk
A generated CMake script would only be processed at configuration time. I need something that gets processed at build time. Thanks On 3 Feb 2014, at 17:29, J Decker d3c...@gmail.com wrote: generate a cmake script and include said script? use FILE() command and open the file to read it? On

Re: [CMake] How to read and compile dynamically-generated list of cpp files

2014-02-03 Thread J Decker
Run another layer of cmake that uses the new file? On Mon, Feb 3, 2014 at 9:33 AM, Gimmeamilk gimmeamilkb...@googlemail.com wrote: A generated CMake script would only be processed at configuration time. I need something that gets processed at build time. Thanks On 3 Feb 2014, at 17:29, J

Re: [CMake] How to read and compile dynamically-generated list of cpp files

2014-02-03 Thread J Decker
could use configure_file instead of writing the file if you have a cmakelists.template that has some variables to substitute for the c++ files would be easier On Mon, Feb 3, 2014 at 9:58 AM, J Decker d3c...@gmail.com wrote: Run another layer of cmake that uses the new file? On Mon, Feb 3, 2014

Re: [CMake] How to read and compile dynamically-generated list of cpp files

2014-02-03 Thread Andreas Mohr
Hi, On Mon, Feb 03, 2014 at 12:00:02PM -0500, cmake-requ...@cmake.org wrote: Date: Mon, 3 Feb 2014 16:44:28 + From: gimmeamilk gimmeamilk gimmeamilkb...@googlemail.com Hi all, I have a custom tool that processes a given list of IDL files and produces a number of .cpp and .h files as