share/hedgewars/Data/Locale/CMakeLists.txt
author Wuzzy <Wuzzy2@mail.ru>
Tue, 30 Apr 2019 22:27:42 +0200
changeset 14867 f40bfa7fac9c
parent 14822 d3f72c73ed6d
permissions -rw-r--r--
Update locale files

find_package(Qt5 COMPONENTS LinguistTools)

file(GLOB txttrans2 ??.txt)
file(GLOB txttrans5 ?????.txt)
file(GLOB tsfiles hedgewars_*.ts)
file(GLOB luafiles *.lua)
file(GLOB missionfiles missions_*.txt)
file(GLOB campaignfiles campaigns_*.txt)
file(GLOB tipfiles tips_*.xml)

QT5_ADD_TRANSLATION(QM ${tsfiles})

add_custom_target (release-translation ALL
        DEPENDS ${QM}
        COMMENT "Compiling ts files"
)

install(FILES
    ${txttrans2}
    ${txttrans5}
    ${QM}
    ${luafiles}
    ${missionfiles}
    ${campaignfiles}
    ${tipfiles}
    DESTINATION ${SHAREPATH}Data/Locale
)