Move the header files in subdirectory

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Blakharaz
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Wed Jan 12, 2005 12:06
Location: Potsdam, Germany
Contact:

Move the header files in subdirectory

Postby Blakharaz » Wed Jul 21, 2004 19:31

Have you ever considered moving the headers into a subdirectory?
All include statements would have to be changed to
#include "CEGUI/XYZ.h"

I think it would ease the cross-platform development between Windows and Linux. In Windows you set the include path to a bunch of directories while in Linux you usually just use /usr/include and /usr/local/include. In our case, we would have to add the CEGUI include path to our automake input files, which would not be necessary if the header files would "know" of their subdirectory.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Move the header files in subdirectory

Postby CrazyEddie » Thu Jul 22, 2004 04:44

Thanks for the suugestion :)

The current linux build system can be used to build and install the system appropriately into a sub-dir of /usr/local/include. You can use the pkg-config system (via the PKG_CHECK_MODULES autoconfig macro) to automatically get the compiler and linker setting you need for your client application, for Ogre you should be checking for the CEGUI-OGRE package since it includes the lib for the renderer.

Hope this helps.


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests