diff --git a/telldus-gui/TelldusCenter/CMakeLists.txt b/telldus-gui/TelldusCenter/CMakeLists.txt index 7b71568b..1194b4eb 100644 --- a/telldus-gui/TelldusCenter/CMakeLists.txt +++ b/telldus-gui/TelldusCenter/CMakeLists.txt @@ -176,6 +176,14 @@ IF (UNIX) ENDIF () ENDIF (UNIX) +IF (WIN32) + ADD_CUSTOM_COMMAND( TARGET ${telldus-center_TARGET} + POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy ${telldus-center_QM} ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR} VERBATIM + COMMENT "Copying translation for TelldusCenter" + ) +ENDIF() + INSTALL(TARGETS ${telldus-center_TARGET} RUNTIME DESTINATION bin BUNDLE DESTINATION "/Applications" diff --git a/telldus-gui/TelldusGui/CMakeLists.txt b/telldus-gui/TelldusGui/CMakeLists.txt index 5534233a..03293b49 100644 --- a/telldus-gui/TelldusGui/CMakeLists.txt +++ b/telldus-gui/TelldusGui/CMakeLists.txt @@ -149,6 +149,14 @@ SET_TARGET_PROPERTIES(${telldus-gui_TARGET} PROPERTIES INSTALL_NAME_DIR "/Library/Frameworks" ) +IF (WIN32) + ADD_CUSTOM_COMMAND( TARGET ${telldus-gui_TARGET} + POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy ${telldus-gui_QM} ${LIBRARY_OUTPUT_PATH}/${CMAKE_CFG_INTDIR} VERBATIM + COMMENT "Copying translation for TelldusGUI" + ) +ENDIF() + IF (UNIX) INSTALL(TARGETS ${telldus-gui_TARGET} LIBRARY DESTINATION lib