-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLibraryVersion.inc.in
More file actions
36 lines (30 loc) · 863 Bytes
/
LibraryVersion.inc.in
File metadata and controls
36 lines (30 loc) · 863 Bytes
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
#ifdef VKW_VERSION_MAJOR
#error "VKW_VERSION_MAJOR must not be defined in here"
#endif
#ifdef VKW_VERSION_MINOR
#error "VKW_VERSION_MINOR must not be defined in here"
#endif
#ifdef VKW_VERSION_REV
#error "VKW_VERSION_REV must not be defined in here"
#endif
#cmakedefine VKW_VERSION_MAJOR @VKW_VERSION_MAJOR@
#cmakedefine VKW_VERSION_MINOR @VKW_VERSION_MINOR@
#cmakedefine VKW_VERSION_REV @VKW_VERSION_REV@
#ifdef VKW_VERSION_MAJOR
constexpr unsigned MajorVersion = VKW_VERSION_MAJOR;
#else
constexpr unsigned MajorVersion = 0u;
#endif
#ifdef VKW_VERSION_MINOR
constexpr unsigned MinorVersion = VKW_VERSION_MINOR;
#else
constexpr unsigned MinorVersion = 0u;
#endif
#ifdef VKW_VERSION_REV
constexpr unsigned RevVersion = VKW_VERSION_REV;
#else
constexpr unsigned RevVersion = 0u;
#endif
#undef VKW_VERSION_MAJOR
#undef VKW_VERSION_MINOR
#undef VKW_VERSION_REV