Ignore:
Timestamp:
Dec 22, 2014, 1:08:19 AM (8 years ago)
Author:
mikedld
Message:

#4050: Use TRANSLATIONS_DIR macro as a hint for Qt client translation files location

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/CMakeLists.txt

    r14393 r14396  
    148148)
    149149
     150add_definitions(
     151    "-DTRANSLATIONS_DIR=\"${CMAKE_INSTALL_FULL_DATADIR}/${TR_NAME}/translations\""
     152)
     153
    150154add_executable(${TR_NAME}-qt
    151155    ${${PROJECT_NAME}_SOURCES}
     
    176180
    177181install(FILES transmission-qt.desktop DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
     182
     183if(ENABLE_NLS)
     184    install(FILES ${${PROJECT_NAME}_QM_FILES} DESTINATION ${CMAKE_INSTALL_DATADIR}/${TR_NAME}/translations)
     185endif()
Note: See TracChangeset for help on using the changeset viewer.