Add new fields to ApplicationInfo
This commit is contained in:
parent
fa961b21bc
commit
02bd9f7c06
|
@ -25,6 +25,9 @@ struct ApplicationInfo {
|
||||||
const char *author = nullptr;
|
const char *author = nullptr;
|
||||||
const char *version = nullptr;
|
const char *version = nullptr;
|
||||||
const char *url = nullptr;
|
const char *url = nullptr;
|
||||||
|
const char *description = nullptr;
|
||||||
|
const char *license = nullptr;
|
||||||
|
const char *credits = nullptr;
|
||||||
std::vector<const char *> dependencyVersions;
|
std::vector<const char *> dependencyVersions;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -51,6 +54,9 @@ CPP_UTILITIES_EXPORT extern ApplicationInfo applicationInfo;
|
||||||
::ApplicationUtilities::applicationInfo.author = APP_AUTHOR; \
|
::ApplicationUtilities::applicationInfo.author = APP_AUTHOR; \
|
||||||
::ApplicationUtilities::applicationInfo.version = APP_VERSION; \
|
::ApplicationUtilities::applicationInfo.version = APP_VERSION; \
|
||||||
::ApplicationUtilities::applicationInfo.url = APP_URL; \
|
::ApplicationUtilities::applicationInfo.url = APP_URL; \
|
||||||
|
::ApplicationUtilities::applicationInfo.description = APP_DESCRIPTION; \
|
||||||
|
::ApplicationUtilities::applicationInfo.license = PROJECT_LICENSE; \
|
||||||
|
::ApplicationUtilities::applicationInfo.credits = APP_CREDITS; \
|
||||||
SET_DEPENDENCY_INFO
|
SET_DEPENDENCY_INFO
|
||||||
|
|
||||||
class Argument;
|
class Argument;
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#define APP_NAME "@META_APP_NAME@"
|
#define APP_NAME "@META_APP_NAME@"
|
||||||
#define APP_VERSION "@META_APP_VERSION@"
|
#define APP_VERSION "@META_APP_VERSION@"
|
||||||
#define APP_AUTHOR "@META_APP_AUTHOR@"
|
#define APP_AUTHOR "@META_APP_AUTHOR@"
|
||||||
|
#define APP_CREDITS "@META_APP_CREDITS@"
|
||||||
#define APP_URL "@META_APP_URL@"
|
#define APP_URL "@META_APP_URL@"
|
||||||
#define APP_DESCRIPTION "@META_APP_DESCRIPTION@"
|
#define APP_DESCRIPTION "@META_APP_DESCRIPTION@"
|
||||||
#define APP_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"
|
#define APP_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"
|
||||||
|
|
Loading…
Reference in New Issue