build: back to cmake.

This commit is contained in:
2025-07-06 23:51:45 +08:00
parent 13be630726
commit a04202c00e
33 changed files with 436 additions and 5247 deletions

View File

@@ -1,12 +1,9 @@
#ifndef VERSION
#define VERSION
#ifndef VERSION_H
#define VERSION_H
#define VERSION_MAJOR ${VERSION_MAJOR}
#define VERSION_MINOR ${VERSION_MINOR}
#define VERSION_ALTER ${VERSION_ALTER}
#define VERSION_BUILD ${VERSION_BUILD}
#define VERSION_GIT_COMMIT "${GIT_COMMIT}"
#define VERSION_GIT_BRANCH "${GIT_BRANCH}"
#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