Fixed copying of translation files for windows
This commit is contained in:
parent
23d870061a
commit
fa131eed2e
2 changed files with 16 additions and 0 deletions
|
@ -176,6 +176,14 @@ IF (UNIX)
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
ENDIF (UNIX)
|
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}
|
INSTALL(TARGETS ${telldus-center_TARGET}
|
||||||
RUNTIME DESTINATION bin
|
RUNTIME DESTINATION bin
|
||||||
BUNDLE DESTINATION "/Applications"
|
BUNDLE DESTINATION "/Applications"
|
||||||
|
|
|
@ -149,6 +149,14 @@ SET_TARGET_PROPERTIES(${telldus-gui_TARGET} PROPERTIES
|
||||||
INSTALL_NAME_DIR "/Library/Frameworks"
|
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)
|
IF (UNIX)
|
||||||
INSTALL(TARGETS ${telldus-gui_TARGET}
|
INSTALL(TARGETS ${telldus-gui_TARGET}
|
||||||
LIBRARY DESTINATION lib
|
LIBRARY DESTINATION lib
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue