2021-05-11 19:21:25 +00:00
|
|
|
find_package(Qt5LinguistTools)
|
|
|
|
|
2021-09-22 20:43:03 +00:00
|
|
|
set(TS_FILES
|
2022-05-04 16:20:30 +00:00
|
|
|
squawk.en.ts
|
2021-09-22 20:43:03 +00:00
|
|
|
squawk.ru.ts
|
|
|
|
squawk.pt_BR.ts
|
|
|
|
)
|
2021-05-11 19:21:25 +00:00
|
|
|
qt5_add_translation(QM_FILES ${TS_FILES})
|
|
|
|
add_custom_target(translations ALL DEPENDS ${QM_FILES})
|
2022-04-05 19:00:56 +00:00
|
|
|
install(FILES ${QM_FILES} DESTINATION ${CMAKE_INSTALL_DATADIR}/macaw.me/squawk/l10n)
|
2021-05-11 19:21:25 +00:00
|
|
|
|
2021-09-22 20:43:03 +00:00
|
|
|
add_dependencies(${CMAKE_PROJECT_NAME} translations)
|