Browse Source

Add license to config

improve/error-messages
Martchus 4 years ago
parent
commit
7c8580d579
  1. 1
      cmake/templates/Config.cmake.in
  2. 1
      cmake/templates/config.h.in

1
cmake/templates/Config.cmake.in

@ -13,6 +13,7 @@ set(@META_PROJECT_VARNAME_UPPER@_GIT_REV_COUNT "@META_GIT_REV_COUNT@")
set(@META_PROJECT_VARNAME_UPPER@_GIT_LAST_COMMIT_ID "@META_GIT_LAST_COMMIT_ID@")
set(@META_PROJECT_VARNAME_UPPER@_URL "@META_APP_URL@")
set(@META_PROJECT_VARNAME_UPPER@_DESCRIPTION "@META_APP_DESCRIPTION@")
set(@META_PROJECT_VARNAME_UPPER@_LICENSE "@META_PROJECT_LICENSE@")
# define general config
set(@META_PROJECT_VARNAME_UPPER@_IS_HEADER_ONLY @META_HEADER_ONLY_LIB@)

1
cmake/templates/config.h.in

@ -5,6 +5,7 @@
#define @META_PROJECT_VARNAME_UPPER@_CONFIG
#define PROJECT_NAME "@META_PROJECT_NAME@"
#define PROJECT_LICENSE "@META_PROJECT_LICENSE@"
#define APP_NAME "@META_APP_NAME@"
#define APP_VERSION "@META_APP_VERSION@"
#define APP_AUTHOR "@META_APP_AUTHOR@"

Loading…
Cancel
Save