mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Use install prefix for the mapserver to locate vector provider libs
git-svn-id: http://svn.osgeo.org/qgis/trunk@14120 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
7d90e044fb
commit
d79194eb0c
@ -24,6 +24,7 @@
|
|||||||
#define QGIS_DATA_SUBDIR "${QGIS_DATA_SUBDIR}"
|
#define QGIS_DATA_SUBDIR "${QGIS_DATA_SUBDIR}"
|
||||||
#define QGIS_LIBEXEC_SUBDIR "${QGIS_LIBEXEC_SUBDIR}"
|
#define QGIS_LIBEXEC_SUBDIR "${QGIS_LIBEXEC_SUBDIR}"
|
||||||
#define QGIS_LIB_SUBDIR "${QGIS_LIB_SUBDIR}"
|
#define QGIS_LIB_SUBDIR "${QGIS_LIB_SUBDIR}"
|
||||||
|
#define CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}"
|
||||||
|
|
||||||
#cmakedefine HAVE_POSTGRESQL
|
#cmakedefine HAVE_POSTGRESQL
|
||||||
|
|
||||||
|
@ -34,6 +34,9 @@ map service syntax for SOAP/HTTP POST
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
//for CMAKE_INSTALL_PREFIX
|
||||||
|
#include "qgsconfig.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
@ -122,13 +125,8 @@ int main( int argc, char * argv[] )
|
|||||||
|
|
||||||
QgsApplication qgsapp( argc, argv, false );
|
QgsApplication qgsapp( argc, argv, false );
|
||||||
|
|
||||||
QString myQGisDir( QGIS_LIB_DIR ); //defined in CmakeLists.txt
|
|
||||||
myQGisDir += QDir::separator();
|
|
||||||
#ifdef Q_OS_LINUX
|
|
||||||
myQGisDir += "/../";
|
|
||||||
#endif
|
|
||||||
// init QGIS's paths - true means that all path will be inited from prefix
|
// init QGIS's paths - true means that all path will be inited from prefix
|
||||||
QgsApplication::setPrefixPath( myQGisDir, TRUE );
|
QgsApplication::setPrefixPath( CMAKE_INSTALL_PREFIX, TRUE );
|
||||||
|
|
||||||
// Instantiate the plugin directory so that providers are loaded
|
// Instantiate the plugin directory so that providers are loaded
|
||||||
QgsProviderRegistry::instance( QgsApplication::pluginPath() );
|
QgsProviderRegistry::instance( QgsApplication::pluginPath() );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user