add ts files correctly

This commit is contained in:
Guobang Bi 2020-03-07 18:15:56 +08:00
parent d970d113c1
commit 35f9a8ee57
No known key found for this signature in database
GPG Key ID: D850BE43BE29325B

View File

@ -1,4 +1,4 @@
find_package(Qt5 COMPONENTS LinguistTools)
set(TRANSLATIONS_DIR ${CMAKE_SOURCE_DIR}/translations)
file(GLOB TRANSLATIONS_TS ${TRANSLATIONS_DIR}/**.ts)
qt5_create_translation(QM_FILES ${TRANSLATIONS_TS})
qt5_add_translation(QM_FILES ${TRANSLATIONS_TS})