Add domain to ApplicationInfo

sendfile
Martchus 3 years ago
parent d184370fea
commit eb34ce610d
  1. 2
      application/argumentparser.h
  2. 1
      cmake/templates/config.h.in

@ -24,6 +24,7 @@ struct ApplicationInfo {
const char *author = nullptr;
const char *version = nullptr;
const char *url = nullptr;
const char *domain = nullptr;
const char *description = nullptr;
const char *license = nullptr;
const char *credits = nullptr;
@ -53,6 +54,7 @@ CPP_UTILITIES_EXPORT extern ApplicationInfo applicationInfo;
::CppUtilities::applicationInfo.author = APP_AUTHOR; \
::CppUtilities::applicationInfo.version = APP_VERSION; \
::CppUtilities::applicationInfo.url = APP_URL; \
::CppUtilities::applicationInfo.domain = APP_DOMAIN; \
::CppUtilities::applicationInfo.description = APP_DESCRIPTION; \
::CppUtilities::applicationInfo.license = PROJECT_LICENSE; \
::CppUtilities::applicationInfo.credits = APP_CREDITS; \

@ -13,6 +13,7 @@
#define APP_AUTHOR "@META_APP_AUTHOR@"
#define APP_CREDITS "@META_APP_CREDITS@"
#define APP_URL "@META_APP_URL@"
#define APP_DOMAIN "@META_APP_DOMAIN@"
#define APP_DESCRIPTION "@META_APP_DESCRIPTION@"
#define APP_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"
#define APP_DATA_DIR "@META_DATA_DIR@"

Loading…
Cancel
Save