summaryrefslogtreecommitdiff
path: root/.prev_configure.cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-06-11 11:55:16 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-06-15 14:20:12 +0200
commit1197f8e5467b6785ba3d6accb68cb4410356c373 (patch)
treefc3ac53eda9fe2e54814504a35aed2ad7377dd09 /.prev_configure.cmake
parentfaec6a0ec9626a36fa28bc9d92e13cd64589a9a3 (diff)
downloadqttools-1197f8e5467b6785ba3d6accb68cb4410356c373.tar.gz
CMake translation API: Add way to get hold of generated .qm files
Add the argument QM_FILES_OUTPUT_VARIABLE to qt6_add_lrelease and qt6_add_translations to extract the paths of generated .qm files. That is needed to be able to further process these files. Example usage: qt6_add_lupdate(myapp TS_FILES foo_de.ts) qt6_add_lrelease(myapp QM_FILES_OUTPUT_VARIABLE qm_files TS_FILES foo_de.ts) install(FILES "${qm_files}" DESTINATION "translations") or qt6_add_translations(myapp TS_FILES foo_de.ts QM_FILES_OUTPUT_VARIABLE qm_files) install(FILES "${qm_files}" DESTINATION "translations") Pick-to: 6.2 Change-Id: I88622e8fe2fd76943d868340214739a3f1249a85 Reviewed-by: Craig Scott <craig.scott@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to '.prev_configure.cmake')
0 files changed, 0 insertions, 0 deletions