Splitting up a large project into subfolders?
Simon Ejsing
simon at esoft.dk
Fri Jun 11 11:37:06 UTC 2004
On Friday 11 June 2004 10:54, Andras Mantia wrote:
> Simon Ejsing wrote:
> > that the location of the header files changes, so if texture.cpp includes
> > eg. "struct.h", this have to be changed to "../struct.h", but that's
> > correct anyway :)
>
> No, you don't need to. ;-)
>
> Put
> AM_CXXFLAGS = -I$(top_srcdir) (or $(top_srcdir)/somepath, depending on
> where struct.h is compared to the toplevel project directory).
> in the Makefile.am.
>
> Or Subproject options, Includes. I think it does the same.
Hey, they thought of everything :)
It even works from within the automake manager (just check the sub-project
from the list), that's really cool :)
--
Simon Ejsing, Systemudvikler
esoft ApS, http://www.esoft.dk
Skibhusvej 52C, DK-5000 Odense C.
Tlf: 70 222 466, Fax: 63 122 466
More information about the KDevelop-devel
mailing list