[Qgis-developer] cmake install and includes

David Burken dburken at comcast.net
Wed Jul 6 19:10:39 EDT 2011


All,

Just some cmake feedback.  On linux when I do a cmake build on linux with

-DCMAKE_INSTALL_PREFIX=/usr/local

and do a:

make
make install

The includes go to:

/usr/local/include/qgis

Which is good:

So in my qgis plugin I namespace my includes like:

// QGIS Specific includes
#include <qgis/qgisinterface.h>

All is good, I have a single include path of /usr/local/include.

But on window includes install to:

C:\Program Files\qgis1.7.0\include

Note no qgis sub dir.

So then:
#include <qgis/qgisinterface.h>

Does not work.

So it would be nice if the install went one way or the other on all 
platforms.  I like the namespaced sub directory, i.e. 
install_prefix/include/qgis.

Just some feedback...

Take care,
Dave

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20110706/45731503/attachment.html


More information about the Qgis-developer mailing list