MercuryDPM  Trunk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CMakeDefinitions.h File Reference
#include <string>

Go to the source code of this file.

Macros

#define ON   1
 
#define OFF   0
 
#define MERCURY_STACKTRACE_SHOW   0
 
#define MERCURY_STACKTRACE_DEMANGLE   0
 

Functions

const std::string getMercurySourceDir ()
 This file is used for generating defitions that give access to CMakeVaribles from within a cpp file (defintions have only been added as required. More...
 
const std::string getMercuryBuildDir ()
 
const int getSVNRevision ()
 
const std::string getSVNURL ()
 
const std::string getVersion ()
 

Macro Definition Documentation

#define MERCURY_STACKTRACE_DEMANGLE   0

Definition at line 61 of file CMakeDefinitions.h.

#define MERCURY_STACKTRACE_SHOW   0

Definition at line 54 of file CMakeDefinitions.h.

#define OFF   0

Definition at line 49 of file CMakeDefinitions.h.

#define ON   1

Definition at line 48 of file CMakeDefinitions.h.

Function Documentation

const std::string getMercuryBuildDir ( )

Definition at line 36 of file CMakeDefinitions.cc.

37 {
38  return "@Mercury_BINARY_DIR@";
39 }
const std::string getMercurySourceDir ( )

This file is used for generating defitions that give access to CMakeVaribles from within a cpp file (defintions have only been added as required.

Definition at line 31 of file CMakeDefinitions.cc.

32 {
33  return "@Mercury_SOURCE_DIR@";
34 }
const int getSVNRevision ( )

Definition at line 41 of file CMakeDefinitions.cc.

Referenced by DPMBase::write().

42 {
43  return @SVN_WC_REVISION@;
44 }
const std::string getSVNURL ( )

Definition at line 46 of file CMakeDefinitions.cc.

Referenced by DPMBase::write().

47 {
48  return "@SVN_WC_URL@";
49 }
const std::string getVersion ( )

Definition at line 51 of file CMakeDefinitions.cc.

Referenced by DPMBase::write().

52 {
53  return "@Mercury_VERSION_MAJOR@.@Mercury_VERSION_MINOR@";
54 }