[CMake] Re: Out of source build and KDevelop

Alexander Neundorf a.neundorf-work at gmx.net
Wed Oct 20 17:32:24 EDT 2004


> Hi Alex, 
>  
... 
> I would say your code organization may be wrong too, if you are having 
> the following scenario: 
>  
>   /p1/PROJECT(p1) 
>   /p2/PROJECT(p2) 
>   /src 
>  
> and now you use the code from src in p1 and p2. You should really build 
> a library from the common things and then link it in p1 and p2. 
 
Well, I know the directory setup is kind of strange. But in my common/ 
directory exist source files, and there I don't know in which way they 
might be required (x86, arm-elf, ppc-eabi, with debug, no debug, all 
source files, only some of them, ...). This would result in a big number 
of libraries, with more or less the same names but different behaviour, 
it would be hard to oversee. So building real libraries there currently 
doesn't really make sense for me.  
 
Bye 
Alex 
 

-- 
GMX ProMail mit bestem Virenschutz http://www.gmx.net/de/go/mail
+++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++



More information about the CMake mailing list