forked from rtlabs-com/p-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pnet_version.h.in
41 lines (33 loc) · 1.26 KB
/
pnet_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 2018 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 PNET_VERSION_H
#define PNET_VERSION_H
#cmakedefine PROFINET_GIT_REVISION "@PROFINET_GIT_REVISION@"
#if !defined(PNET_VERSION_BUILD) && defined(PROFINET_GIT_REVISION)
#define PNET_VERSION_BUILD PROFINET_GIT_REVISION
#endif
/* clang-format-off */
#define PNET_VERSION_MAJOR @PROFINET_VERSION_MAJOR@
#define PNET_VERSION_MINOR @PROFINET_VERSION_MINOR@
#define PNET_VERSION_PATCH @PROFINET_VERSION_PATCH@
#if defined(PNET_VERSION_BUILD)
#define PNET_VERSION \
"@PROFINET_VERSION_MAJOR@.@PROFINET_VERSION_MINOR@.@PROFINET_VERSION_PATCH@+" PNET_VERSION_BUILD
#else
#define PNET_VERSION \
"@PROFINET_VERSION_MAJOR@.@PROFINET_VERSION_MINOR@.@PROFINET_VERSION_PATCH@"
#endif
/* clang-format-on */
#endif /* PNET_VERSION_H */