Splitting up a large project into subfolders?
Steven T. Hatton
hattons at globalsymmetry.com
Thu Jun 10 18:50:07 UTC 2004
-----BEGIN PGP SIGNED MESSAGE-----
On Thursday 10 June 2004 10:13, Simon Ejsing wrote:
> Hi, I have a C++ project I'm working on, and by now it's becomming more
> and more complex, so I want to split it into folders, but I can't figure
> out how to do that with the automake manager... It seems automake is
> blocking me from having files in seperate directories for the same target.
> What I want to do is to have eg. "texture.h", "texture.cpp" and possibly
> more files in a sub directory named "texture", these files should be
> compiled and linked against the rest of the project as if they were a part
> of that target. Is there any way to do this? If I try to create the files
> with the wizard, it will put the files into a subproject, and if I add them
> as existing files, it wants to symlink the files, which is not what I want.
> I suppose the right way is to create a subproject for the files, but how
> can I generate regular .o files and link them into the main project?
> Thanks in advance.
I feel your pain. I would suggest you take this to the kdevelop at kdevelop.org
except that it really does seem to be a 'bug' in KDevelop. I have been
reading the (amazingly inconsistent) autotools documentation, and examining
the behavior of the Automake Manager, hoping to shed some light on how this
works. I've made very little progress regarding specifics.
I will suggest you create a subproject of any kind, and then examine the
result. The most important product will be a Makefile.am (I believe).
Examine the Makefile.am. If you already understand how these files work you
will be well ahead of me. There is a parable in one of the ancient Sanskrit
texts about the blind leading the blind. Sometimes that's all you have.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the KDevelop-devel