feat: use CMake to generate library version info.

- use CMake to produce YYCC version header when configuring.
This commit is contained in:
2024-11-03 18:52:02 +08:00
parent 831fa130bc
commit 0b7e58c8e8
4 changed files with 15 additions and 3 deletions

5
cmake/YYCCVersion.hpp.in Normal file
View File

@ -0,0 +1,5 @@
#pragma once
#define YYCC_VER_MAJOR @PROJECT_VERSION_MAJOR@
#define YYCC_VER_MINOR @PROJECT_VERSION_MINOR@
#define YYCC_VER_PATCH @PROJECT_VERSION_PATCH@