C/Cpp: Fix CMake clang-tidy, add version generator
This commit is contained in:
parent
f6d6a34177
commit
f186badabe
4 changed files with 51 additions and 13 deletions
17
cpp/autogen/version.h.in
Normal file
17
cpp/autogen/version.h.in
Normal file
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* @file version.h
|
||||
* @brief Auto-generated version number preprocessor definitions
|
||||
*
|
||||
* These values will be calculated by CMake. Do not modify manually!
|
||||
*
|
||||
* @author Jannik Beyerstedt <beyerstedt@consider-it.de>
|
||||
* @copyright (c) consider it GmbH, 2020
|
||||
*/
|
||||
|
||||
#ifndef VERSION_H
|
||||
#define VERSION_H
|
||||
|
||||
#define GIT_VERSION_TAG "@GIT_VERSION_TAG@"
|
||||
#define GIT_BRANCH_NAME "@GIT_BRANCH_NAME@"
|
||||
|
||||
#endif /* VERSION_H */
|
Loading…
Add table
Add a link
Reference in a new issue