Qt internationalization and CMake: how to update *.ts and don't lose them -
i'm having cmakelists.txt in directory translation files ( *.ts ): set(translations lang_de.ts lang_en.ts ) find_package(qt5linguisttools) qt5_add_translation(qm_files ${translations}) set(qm_files ${qm_files} parent_scope) add_custom_target (translations depends ${qm_files}) it builds *.qm files specified *.ts . but want improve , 2 custom targets, won't built automatically. 1 appending new strings sources ts files, , 1 refreshing ts . last 1 update ts sources , remove obsolete strings ts . i've tried add after lines above: add_custom_target ( ts_append command qt5_create_translation(qm_files ${cmake_source_dir}/src/app ${translations} options -i ${cmake_source_dir}/src) ) add_custom_target ( ts_refresh command qt5_create_translation(qm_files ${cmake_source_dir}/src/app ${translations} options -no-obsolete -i ${cmake_source_dir}/src) ) but seems can't use qt5_create_translation macro inside custom target, isn't it? m...