added version number to build
This commit is contained in:
26
source/Application.hpp
Normal file
26
source/Application.hpp
Normal 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__
|
||||
Reference in New Issue
Block a user