ukui-screensaver/i18n_ts/CMakeLists.txt

13 lines
349 B
CMake
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

find_package(Qt5LinguistTools)
file(GLOB ts_files *.ts)
qt5_add_translation(qm_files ${ts_files})
add_custom_target(i18n
DEPENDS ${qm_files}
SOURCES ${ts_files}
)
# 让主目标依赖翻译文件这样才会执行i18n
add_dependencies(ukui-screensaver-dialog i18n)
install(FILES ${qm_files} DESTINATION /usr/share/ukui-screensaver/i18n_qm/)