KDevelop template: Simple CMake based C++ project
Alexander Neundorf
neundorf at kde.org
Fri Feb 20 18:29:26 UTC 2009
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.
> > 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.
So I would do it this way right from the start, especially for such a template
file.
Alex
More information about the KDevelop-devel
mailing list