Add new fields to ApplicationInfo

sendfile
Martchus 4 years ago
parent fa961b21bc
commit 02bd9f7c06
  1. 6
      application/argumentparser.h
  2. 1
      cmake/templates/config.h.in

@ -25,6 +25,9 @@ struct ApplicationInfo {
const char *author = nullptr;
const char *version = nullptr;
const char *url = nullptr;
const char *description = nullptr;
const char *license = nullptr;
const char *credits = nullptr;
std::vector<const char *> dependencyVersions;
};
@ -51,6 +54,9 @@ CPP_UTILITIES_EXPORT extern ApplicationInfo applicationInfo;
::ApplicationUtilities::applicationInfo.author = APP_AUTHOR; \
::ApplicationUtilities::applicationInfo.version = APP_VERSION; \
::ApplicationUtilities::applicationInfo.url = APP_URL; \
::ApplicationUtilities::applicationInfo.description = APP_DESCRIPTION; \
::ApplicationUtilities::applicationInfo.license = PROJECT_LICENSE; \
::ApplicationUtilities::applicationInfo.credits = APP_CREDITS; \
SET_DEPENDENCY_INFO
class Argument;

@ -11,6 +11,7 @@
#define APP_NAME "@META_APP_NAME@"
#define APP_VERSION "@META_APP_VERSION@"
#define APP_AUTHOR "@META_APP_AUTHOR@"
#define APP_CREDITS "@META_APP_CREDITS@"
#define APP_URL "@META_APP_URL@"
#define APP_DESCRIPTION "@META_APP_DESCRIPTION@"
#define APP_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"

Loading…
Cancel
Save