forked from NREL/OpenStudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOpenStudio.in
89 lines (71 loc) · 1.63 KB
/
OpenStudio.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#ifndef OPENSTUDIO_HXX
#define OPENSTUDIO_HXX
// Support for Ninja on Windows (Ninja isn't multi-configuration while MSVC is)
#cmakedefine NINJA
// Return the version in MAJOR.MINOR.PATCH format (eg '3.0.0')
inline std::string openStudioVersion()
{
return "${OPENSTUDIO_VERSION}";
}
// Includes prerelease tag if any, and build sha, eg: '3.0.0-rc1+baflkdhsia'
inline std::string openStudioLongVersion()
{
return "${OPENSTUDIO_LONG_VERSION}";
}
inline std::string openStudioVersionMajor()
{
return "${PROJECT_VERSION_MAJOR}";
}
inline std::string openStudioVersionMinor()
{
return "${PROJECT_VERSION_MINOR}";
}
inline std::string openStudioVersionPatch()
{
return "${PROJECT_VERSION_PATCH}";
}
inline std::string openStudioVersionPrerelease()
{
return "${PROJECT_VERSION_PRERELEASE}";
}
inline std::string openStudioVersionBuildSHA()
{
return "${PROJECT_VERSION_BUILD}";
}
inline int energyPlusVersionMajor()
{
return ${ENERGYPLUS_VERSION_MAJOR};
}
inline int energyPlusVersionMinor()
{
return ${ENERGYPLUS_VERSION_MINOR};
}
inline int energyPlusVersionPatch()
{
return ${ENERGYPLUS_VERSION_PATCH};
}
inline std::string energyPlusVersion()
{
return "${ENERGYPLUS_VERSION}";
}
inline std::string energyPlusBuildSHA()
{
return "${ENERGYPLUS_BUILD_SHA}";
}
inline std::string rubyLibDir()
{
return "${PROJECT_SOURCE_DIR}/ruby/";
}
inline std::string rubyOpenStudioDir()
{
#ifdef WIN32
#ifdef NINJA
return "${PROJECT_BINARY_DIR}/ruby/";
#else
return "${PROJECT_BINARY_DIR}/ruby/" + std::string(CMAKE_INTDIR) + "/";
#endif
#else
return "${PROJECT_BINARY_DIR}/ruby/";
#endif
}
#endif // OPENSTUDIO_HXX