-
Notifications
You must be signed in to change notification settings - Fork 40
/
version.h.in
41 lines (33 loc) · 1.19 KB
/
version.h.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
/*********************************************************************
* _ _ _
* _ __ | |_ _ | | __ _ | |__ ___
* | '__|| __|(_)| | / _` || '_ \ / __|
* | | | |_ _ | || (_| || |_) |\__ \
* |_| \__|(_)|_| \__,_||_.__/ |___/
*
* www.rt-labs.com
* Copyright 2017 rt-labs AB, Sweden.
*
* This software is dual-licensed under GPLv3 and a commercial
* license. See the file LICENSE.md distributed with this software for
* full license information.
********************************************************************/
#ifndef VERSION_H
#define VERSION_H
#cmakedefine COPEN_GIT_REVISION "@COPEN_GIT_REVISION@"
#if !defined(CO_VERSION_BUILD) && defined(COPEN_GIT_REVISION)
#define CO_VERSION_BUILD COPEN_GIT_REVISION
#endif
/* clang-format-off */
#define CO_VERSION_MAJOR @COPEN_VERSION_MAJOR@
#define CO_VERSION_MINOR @COPEN_VERSION_MINOR@
#define CO_VERSION_PATCH @COPEN_VERSION_PATCH@
#if defined(CO_VERSION_BUILD)
#define CO_VERSION \
"@COPEN_VERSION_MAJOR@.@COPEN_VERSION_MINOR@.@COPEN_VERSION_PATCH@+"CO_VERSION_BUILD
#else
#define CO_VERSION \
"@COPEN_VERSION_MAJOR@.@COPEN_VERSION_MINOR@.@COPEN_VERSION_PATCH@"
#endif
/* clang-format-on */
#endif /* VERSION_H */