[CMake] Sharing configuration files?
Raymond Wan
r.wan at aist.go.jp
Tue Jun 7 04:24:23 EDT 2011
Hi Hendrik,
On Tue, Jun 7, 2011 at 17:17, Hendrik Sattler <post at hendrik-sattler.de> wrote:
> Zitat von Raymond Wan <r.wan at aist.go.jp>:
>> Hmmmmm, I never thought of the first option! So if I am understanding
>> your suggestion correctly, this basically means that in X's class
>> definition, it has an entry like:
>>
>> Y* instance_y;
>>
>> i.e., just a pointer to it. And then X doesn't need to worry about
>> the size of Y. I might consider that...
>
> Yes, that's what I meant.
Thanks -- sorry, I was just checking. :-)
>> As for your second option, yes, they are all within the same project
>> -- it's just one isn't a subdirectory of the other (they're siblings).
>> I honestly thought that it was "bad practice" to have generated
>> configuration files outside of the build directory. But if it is ok,
>> I might give this second option a try if the first one doesn't work
>> out.
>
> I assume you have a toplevel CMakeLists.txt in src/ anyway. Or do you run
> cmake for each?
Uh-oh...now I see what I'm doing wrong!
No, I don't run cmake for each but my "toplevel" CMakeLists.txt is
inside src/X. Now I see what I'm doing wrong; it should be in src/.
I'll give this a try first, then. Can't believe I missed it all this
time...
Thank you for your help!
Ray
More information about the CMake
mailing list