added version number to build

This commit is contained in:
2026-02-23 16:11:23 +01:00
parent 4d00936719
commit 639aac68ca
5 changed files with 53 additions and 18 deletions

26
source/Application.hpp Normal file
View File

@@ -0,0 +1,26 @@
#ifndef __APPVERSION_H__
#define __APPVERSION_H__
#include <string>
namespace Application {
#ifndef APP_VERSION
#define APP_VERSION "0.0.0"
#endif
#ifndef APPLICATION_NAME
#define APPLICATION_NAME "app"
#endif
inline std::string version(){
return std::string(APP_VERSION);
}
inline std::string name(){
return std::string(APPLICATION_NAME);
}
}
#endif // __APPVERSION_H__