[Cmake] adding a kdevelop generator

Alexander Neundorf a.neundorf-work at gmx.net
Fri Sep 10 02:06:57 EDT 2004


> You will also need to sub-class a GlobalGenerator.  You may 
> want to look at the Borland stuff for an example.   So, the output 
> will be makefiles like they are now, plus a project file for each 
> directory? 
>  
>  
> I would say that you want to sub-class from cmLocalUnixMakefileGenerator, 
> and define this function: 
> virtual void Generate(bool fromTheTop); 
>  
> Have it call the cmLocalUnixMakefileGenerator::Generate(bool fromTheTop) 
> version of the function, and then add the code to generate the extra 
> kdevelop project files in that function.  You will have a pointer to 
> m_Makefile that contains the parsed CMakeLists.txt file for that 
> directory. 
>  
> You will want to loop over the targets in the makefile to get the list 
> of sources for each target.  For an example see here: 
>  
> cmLocalUnixMakefileGenerator::OutputTargetRules() 
>  
>  
> Good luck.... 
> -Bill 
 
Thank you very much :-) 
I think I'll have something end of next week. 
 
Bye 
Alex 
 

-- 
Supergünstige DSL-Tarife + WLAN-Router für 0,- EUR*
Jetzt zu GMX wechseln und sparen http://www.gmx.net/de/go/dsl



More information about the Cmake mailing list