MercuryDPM  Beta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CMakeDefinitions.h
Go to the documentation of this file.
1 #ifndef CMAKEDEFINTIONS_H
3 #define CMAKEDEFINTIONS_H
4 
5 #include <string>
6 
7 const std::string xballsSupportOn();
8 const std::string getMercurySourceDir();
9 const std::string getMercuryBuildDir();
10 constexpr int getMajorVersionNumber();
11 constexpr int getMinorVersionNumber();
12 const std::string getVersion();
13 
14 /*
15 * This maps the CMake variables to defines used in the Logger.
16 * Because CMake uses ON and OFF opposed to 0 and 1, we have to
17 * use some witchery to make it work too.
18 * We'll clean up the mess afterwards by undefining ON and OFF...
19 */
20 #define ON 1
21 #define OFF 0
22 #if @Mercury_BACKTRACE_ENABLE@ == ON
23 // This symbol is only defined as true, when the stacktrace code should be compiled in.
24 #define MERCURY_STACKTRACE_SHOW 1
25 #else
26 #define MERCURY_STACKTRACE_SHOW 0
27 #endif
28 
29 #if @Mercury_BACKTRACE_DEMANGLE@ == ON
30 // This symbol is only defined as true, when every system required for demangling is present.
31 #define MERCURY_STACKTRACE_DEMANGLE 1
32 #else
33 #define MERCURY_STACKTRACE_DEMANGLE 0
34 #endif
35 // Cleaning up our symbols.
36 #undef ON
37 #undef OFF
38 
39 #endif
const std::string getMercuryBuildDir()
constexpr int getMinorVersionNumber()
const std::string xballsSupportOn()
This file is used for generating defitions that give access to CMakeVaribles from within a cpp file (...
constexpr int getMajorVersionNumber()
const std::string getMercurySourceDir()
const std::string getVersion()