Re: [CMake] Trying to get build info for a target

2012-01-01 Thread Michael Hertling
On 01/01/2012 07:47 AM, Gary Kramlich wrote: On 12/31/2011 05:03 PM, Robert Dailey wrote: Storing the source directory will require the exact idea you had mentioned. Use an internal cache variable or, even better, a target property. This is how I have done it. Each target that I create

[CMake] Trying to get build info for a target

2011-12-31 Thread Gary Kramlich
I'm working on a module that needs to interrogate a target, and get it's source directory, defines, cflags, and libraries that it links to. So far, all I've been able to do is get the sources, which are relative to the source directory of the target. I have not been able to get the source

Re: [CMake] Trying to get build info for a target

2011-12-31 Thread Robert Dailey
Storing the source directory will require the exact idea you had mentioned. Use an internal cache variable or, even better, a target property. This is how I have done it. Each target that I create specifies a list of its include directories (where other targets that depend on it can find its

Re: [CMake] Trying to get build info for a target

2011-12-31 Thread Gary Kramlich
On 12/31/2011 05:03 PM, Robert Dailey wrote: Storing the source directory will require the exact idea you had mentioned. Use an internal cache variable or, even better, a target property. This is how I have done it. Each target that I create specifies a list of its include directories (where