2014-02-25 23:16:50 +05:30
|
|
|
set_directory_properties(PROPERTIES CLEAN_NO_CUSTOM 1)
|
|
|
|
|
|
|
|
### translation stuff
|
|
|
|
|
|
|
|
file(GLOB TRANSLATION_FILES ${CMAKE_CURRENT_LIST_DIR}/*.ts)
|
|
|
|
|
2014-04-06 07:18:59 +05:30
|
|
|
qt5_create_translation(TRANSLATION_MESSAGES ${FILES_TO_TRANSLATE} ${TRANSLATION_FILES})
|
2014-02-25 23:16:50 +05:30
|
|
|
qt5_add_translation(TRANSLATION_QM ${TRANSLATION_FILES})
|
|
|
|
add_custom_target(translations_update DEPENDS ${TRANSLATION_MESSAGES})
|
|
|
|
add_custom_target(translations DEPENDS ${TRANSLATION_QM})
|
|
|
|
|
|
|
|
IF(APPLE AND UNIX) ## OSX
|
|
|
|
install(FILES ${TRANSLATION_QM} DESTINATION MultiMC.app/Contents/MacOS/translations)
|
|
|
|
ELSE()
|
|
|
|
install(FILES ${TRANSLATION_QM} DESTINATION translations)
|
|
|
|
ENDIF()
|