Add Version build function to CMakeLists.txt

This commit is contained in:
Krad
2022-03-08 10:43:35 +08:00
parent e5e4bee129
commit 8011ac9df8
4 changed files with 28 additions and 3 deletions

10
AppVersion.h.in Normal file
View File

@@ -0,0 +1,10 @@
//
// Created by Krad on 2022/3/8.
//
#ifndef GUI_VERSION_H
#define GUI_VERSION_H
#define GUI_VERSION_MAJOR @GUI_VERSION_MAJOR@
#define GUI_VERSION_MINOR @GUI_VERSION_MINOR@
#define GUI_VERSION_BUILD @GUI_VERSION_BUILD@
#endif //GUI_VERSION_H