feat: use CMake to generate library version info.

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

No files matched your search

+5
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@