2010-06-23 16:33:54 +00:00
|
|
|
|
|
|
|
// QGSCONFIG.H
|
|
|
|
|
|
|
|
#ifndef QGSCONFIG_H
|
|
|
|
#define QGSCONFIG_H
|
|
|
|
|
|
|
|
// Version must be specified according to
|
|
|
|
// <int>.<int>.<int>-<any text>.
|
|
|
|
// or else upgrading old project file will not work
|
|
|
|
// reliably.
|
|
|
|
#define VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${RELEASE_NAME}"
|
|
|
|
|
|
|
|
//used in vim src/core/qgis.cpp
|
|
|
|
//The way below should work but it resolves to a number like 0110 which the compiler treats as octal I think
|
|
|
|
//because debuggin it out shows the decimal number 72 which results in incorrect version status.
|
|
|
|
//As a short term fix I (Tim) am defining the version in top level cmake. It would be good to
|
|
|
|
//reinstate this more generic approach below at some point though
|
|
|
|
//#define VERSION_INT ${CPACK_PACKAGE_VERSION_MAJOR}${CPACK_PACKAGE_VERSION_MINOR}${CPACK_PACKAGE_VERSION_PATCH}
|
|
|
|
#define VERSION_INT ${QGIS_VERSION_INT}
|
2012-07-26 16:09:00 +02:00
|
|
|
#define ABISYM(x) x ## ${QGIS_VERSION_INT}
|
2010-06-23 16:33:54 +00:00
|
|
|
//used in main.cpp and anywhere else where the release name is needed
|
|
|
|
#define RELEASE_NAME "${RELEASE_NAME}"
|
|
|
|
|
|
|
|
#define QGIS_PLUGIN_SUBDIR "${QGIS_PLUGIN_SUBDIR}"
|
|
|
|
#define QGIS_DATA_SUBDIR "${QGIS_DATA_SUBDIR}"
|
|
|
|
#define QGIS_LIBEXEC_SUBDIR "${QGIS_LIBEXEC_SUBDIR}"
|
2010-07-12 15:45:42 +00:00
|
|
|
#define QGIS_LIB_SUBDIR "${QGIS_LIB_SUBDIR}"
|
2010-08-22 10:20:28 +00:00
|
|
|
#define CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}"
|
2012-01-08 21:53:52 +01:00
|
|
|
#define CMAKE_SOURCE_DIR "${CMAKE_SOURCE_DIR}"
|
2010-06-23 16:33:54 +00:00
|
|
|
|
2012-10-17 18:17:14 -06:00
|
|
|
#define QSCINTILLA_VERSION_STR "${QSCINTILLA_VERSION_STR}"
|
|
|
|
|
2014-02-22 15:02:51 -07:00
|
|
|
#if defined( __APPLE__ )
|
|
|
|
//used by Mac to find system or bundle resources relative to amount of bundling
|
|
|
|
#define QGIS_MACAPP_BUNDLE ${QGIS_MACAPP_BUNDLE}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define QT_PLUGINS_DIR "${QT_PLUGINS_DIR}"
|
2013-11-11 18:48:27 -07:00
|
|
|
#define OSG_PLUGINS_PATH "${OSG_PLUGINS_PATH}"
|
|
|
|
|
2013-03-08 19:57:40 -07:00
|
|
|
#cmakedefine USING_NMAKE
|
|
|
|
|
2010-06-23 16:33:54 +00:00
|
|
|
#cmakedefine HAVE_POSTGRESQL
|
|
|
|
|
|
|
|
#cmakedefine HAVE_SPATIALITE
|
|
|
|
|
2012-02-06 09:24:17 +01:00
|
|
|
#cmakedefine HAVE_MSSQL
|
|
|
|
|
2013-01-09 16:46:30 +01:00
|
|
|
#cmakedefine HAVE_ORACLE
|
|
|
|
|
2010-06-23 16:33:54 +00:00
|
|
|
#cmakedefine HAVE_PYTHON
|
|
|
|
|
2012-07-18 01:11:46 +02:00
|
|
|
#cmakedefine HAVE_TOUCH
|
|
|
|
|
2012-10-19 00:53:40 +02:00
|
|
|
#cmakedefine HAVE_OSGEARTHQT
|
|
|
|
|
2014-11-28 16:00:53 +01:00
|
|
|
#cmakedefine SERVER_SKIP_ECW
|
2013-05-22 14:17:12 +02:00
|
|
|
|
2014-11-28 16:00:53 +01:00
|
|
|
#cmakedefine HAVE_SERVER_PYTHON_PLUGINS
|
2014-10-09 15:04:04 +02:00
|
|
|
|
2014-12-19 12:33:53 +01:00
|
|
|
#cmakedefine ENABLE_MODELTEST
|
|
|
|
|
2010-06-23 16:33:54 +00:00
|
|
|
#endif
|
|
|
|
|