KDevelop template: Simple CMake based C++ project

Andreas Pakulat apaku at gmx.de
Fri Feb 20 23:43:42 UTC 2009


On 20.02.09 19:29:26, Alexander Neundorf wrote:
> On Thursday 19 February 2009, Andreas Pakulat wrote:
> > On 19.02.09 21:57:28, Alexander Neundorf wrote:
> ...
> > > And please add some documentation for kapptemplate_add_app_templates(),
> > > it's hard to understand what the code actually does.
> >
> > I suggest you talk to Anne-Marie Mahfouf, she maintains kapptemplate in
> > kdesdk. I'll try to take care of the similar macro in kdevplatform, but
> > feel free to file a bugreport against kdevplatform to remind me :)
> 
> Ok.

Done for kdevplatform.
 
> > > You may also consider the following using a variable for the source
> > > files: set(%{APPNAMELC}Srcs main.cpp)
> > > add_executable(%{APPNAMELC} ${%{APPNAMELC}Srcs})
> >
> > IMHO that makes the template just harder to understand without giving any
> > benefit at all.
> 
> Well, once the project gets bigger, it is usually a good idea to have the list 
> of files in a variable, for some macros it is required.

I completely agree, I just think it might make the cmake file a bit
harder to read for the beginners. 

Andreas

-- 
Chess tonight.




More information about the KDevelop-devel mailing list