diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2011-10-03 16:23:54 +0200 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2011-10-03 16:23:54 +0200 |
commit | 3d8916d3e80bdf33487cfbbfd641441cde799f02 (patch) | |
tree | 309956700f969522c62b6108233441d4c90bdbff /CMakeLists.txt | |
parent | c9b4feaf68a071d9df762b2bf23c77bcc80f3f99 (diff) | |
download | acritoxinstaller-3d8916d3e80bdf33487cfbbfd641441cde799f02.zip acritoxinstaller-3d8916d3e80bdf33487cfbbfd641441cde799f02.tar.gz |
started german translation
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8fadd73..e62a468 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,11 +33,26 @@ set(acritoxinstaller_SRCS mainwizard.cpp main.cpp backend.cpp listitem.cpp listd set(acritoxinstaller_MOC_HDRS mainwizard.h backend.h listdelegate.h ${wizard_HDRS}) set(acritoxinstaller_UIS ${wizard_UIS}) +set(FILES_TO_TRANSLATE ${acritoxinstaller_SRCS} ${acritoxinstaller_MOC_HDRS} ${acritoxinstaller_UIS}) +file (GLOB TRANSLATIONS_FILES translations/*.ts) + qt4_wrap_cpp(acritoxinstaller_MOC_SRCS ${acritoxinstaller_MOC_HDRS}) qt4_wrap_ui(acritoxinstaller_UIS_H ${acritoxinstaller_UIS}) include_directories(${CMAKE_CURRENT_BINARY_DIR}) add_executable(acritoxinstaller ${acritoxinstaller_SRCS} ${acritoxinstaller_MOC_SRCS} ${acritoxinstaller_UIS_H}) target_link_libraries(acritoxinstaller ${QT_LIBRARIES} qtermwidget crypt) +option (UPDATE_TRANSLATIONS "Update source translation translations/*.ts +files (WARNING: make clean will delete the source .ts files! Danger!)") +if (UPDATE_TRANSLATIONS) + qt4_create_translation(QM_FILES ${FILES_TO_TRANSLATE} +${TRANSLATIONS_FILES}) +else (UPDATE_TRANSLATIONS) + qt4_add_translation(QM_FILES ${TRANSLATIONS_FILES}) +endif (UPDATE_TRANSLATIONS) +add_custom_target (translations_target DEPENDS ${QM_FILES}) +install(FILES ${QM_FILES} DESTINATION ${QT_TRANSLATIONS_DIR}) +add_dependencies(acritoxinstaller translations_target) + install(TARGETS acritoxinstaller RUNTIME DESTINATION "${BIN_INSTALL_DIR}" LIBRARY DESTINATION "${LIB_INSTALL_DIR}") |