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}/squawk/translations) add_dependencies(${CMAKE_PROJECT_NAME} translations)