[Cmake] [PATCH] kdevelop generator for cmake
Alexander Neundorf
a.neundorf-work at gmx.net
Tue Sep 21 16:56:47 EDT 2004
> Hi,
>
> > Looks good so far, the next step would be to figure out a way to test
> > this code.
> > Can KDevelop be used to run builds from the command line?
>
> AFAIK not really. After all, the generated project files are for the
> kdevelop "custom makefile based project" mode, where kdevelop basically
> calls make in the
> appropriate directory. The project files contain this directory, some
> settings and the files belonging to the project.
>
> I could try to start kdevelop, and try to load the project file and
> have kdevelop compile the project via dcop, but I'm not sure kdevelop
> exports enough functions via dcop and if this would actually make
> sense.
Ok, I just checked kdevelop and didn't find a dcop call to compile the
current project.
Some questions to the code:
maybe you noticed the exit() calls in cmLocalKdevelopGenerator.cxx. I
have the feeling that this is not the recommended way in the case that an
error is detected. What should I do instead ?
At the beginning of Generate() I want to check whether the projectname
was set using PROJECT(). What's the right way to do this ? If PROJECT()
wasn't called in the CMakeLists.txt, GetProjectName() returned "Project",
that's why the strange check. Is there a better way ?
Bye
Alex
--
+++ GMX DSL Premiumtarife 3 Monate gratis* + WLAN-Router 0,- EUR* +++
Clevere DSL-Nutzer wechseln jetzt zu GMX: http://www.gmx.net/de/go/dsl
More information about the Cmake
mailing list