CMake/Docs/QtUtils.md

28 lines
956 B
Markdown
Raw Normal View History

2021-04-20 12:26:53 +03:00
# QtUtils module
2021-03-25 16:38:12 +03:00
2021-04-02 09:20:53 +03:00
Module provides qt utils functions
The module provides qt utils functions. This module contains some useful functions. Including provides translations functionality.
2021-03-25 16:38:12 +03:00
---
2021-04-20 12:26:53 +03:00
2021-04-02 09:20:53 +03:00
## Translation
2021-04-20 12:26:53 +03:00
2021-04-02 09:20:53 +03:00
---
2021-03-25 16:38:12 +03:00
**prepareQM** (name sourceDir ts_files) - This function prepare translations for you projects.
- name - This is a name of the translations target.
- sourceDir - This is root source directory. Update will be scan this dir for prepare translations.
- ts_files - This is list of the supported languages.
**updateGitVars** This macros update all GIT variable releative current cmakelist.txt.
Use This macros before read **GIT_COMMIT_HASH** and **GIT_COMMIT_COUNT** variables.
2021-09-28 13:44:58 +03:00
## CMake Variables
- The **GIT_COMMIT_COUNT** - This variable contains commits count
- The **GIT_COMMIT_HASH** - This variable contains short version of the buildet commit hash.
2021-10-05 00:33:07 +03:00
### Note
2021-10-05 00:33:07 +03:00
For update actualy value of git variables use the updateGitVars macros.