blob: a5c3204c46d87f2a96cd26eda1e55ade06dfd75c (
plain)
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
|
#ifndef VERSION_H
#define VERSION_H
// VcsVersion gets defined by the CMakeLists if project-src/.hg exists
#cmakedefine VcsVersion
#ifdef VcsVersion
// Version: 1.2.3
#define SMOLBOTE_VERSION "@VcsVersion@"
// Describe: 1.2.3-r123-0123456789ab
#define SMOLBOTE_DESCRIBE "@VcsVersion@-r@VcsRevision@-@VcsCommit@"
// Commit
#define SMOLBOTE_COMMIT "@VcsCommit@"
// Branch: default
#define SMOLBOTE_BRANCH "@VcsBranch@"
#else
// Version: 1.2.3
#define SMOLBOTE_VERSION "0.3.0"
// Describe: 1.2.3-r123-0123456789ab
#define SMOLBOTE_DESCRIBE "0.3.0-release"
// Commit
#define SMOLBOTE_COMMIT "package"
// Branch: default
#define SMOLBOTE_BRANCH "release"
#endif
#endif //VERSION_H
|