ver: add version show.

This commit is contained in:
2025-06-18 08:49:29 +08:00
parent a7d0099c3b
commit 540939f321
5 changed files with 41 additions and 3 deletions

9
version.h.in Normal file
View File

@@ -0,0 +1,9 @@
#ifndef VERSION_H
#define VERSION_H
#define VERSION_GIT_COMMIT "@VERSION_GIT_HASH@"
#define VERSION_GIT_BRANCH "@VERSION_GIT_BRANCH@"
#define VERSION_NUM "@PROJECT_VERSION@"
#define VERSION_URL "@PROJECT_URL@"
#endif