squawk/translations/CMakeLists.txt

13 lines
355 B
CMake
Raw Normal View History

find_package(Qt${QT_VERSION_MAJOR}LinguistTools)
set(TS_FILES
squawk.en.ts
squawk.ru.ts
squawk.pt_BR.ts
)
qt_add_translation(QM_FILES ${TS_FILES})
add_custom_target(translations ALL DEPENDS ${QM_FILES})
install(FILES ${QM_FILES} DESTINATION ${CMAKE_INSTALL_DATADIR}/macaw.me/squawk/l10n)
add_dependencies(${CMAKE_PROJECT_NAME} translations)