Skip to content
Snippets Groups Projects
Commit 45432e57 authored by Julien Malik's avatar Julien Malik
Browse files

ENH: install the qt translation files in the windows bundle

parent 2f27bff3
No related branches found
No related tags found
No related merge requests found
......@@ -34,11 +34,34 @@ install(DIRECTORY ${GDAL_DATA}
DESTINATION share
COMPONENT Resources)
# Get the translation files coming with qt, and install them in the bundle
# They are loaded by Monteverdi2.
function(get_qt_translation_files RESULT)
# These files are the "qt_<localename>.qm" files
# They are located in QT_TRANSLATIONS_DIR, which comes from FindQt4
file(GLOB translation_files ${QT_TRANSLATIONS_DIR}/qt_*)
# We need to remove the "qt_help_<localename>.qm" files from this list
foreach(translation_item ${translation_files})
if(${translation_item} MATCHES "qt_help")
list(REMOVE_ITEM translation_files ${translation_item})
endif()
endforeach()
set(${RESULT} ${translation_files} PARENT_SCOPE)
endfunction()
get_qt_translation_files(QT_TRANSLATIONS_FILES)
install(FILES ${QT_TRANSLATIONS_FILES}
DESTINATION share/qt4/translations
COMPONENT Resources)
install(FILES ${Monteverdi2_SOURCE_DIR}/Packaging/Windows/monteverdi2.bat
DESTINATION bin
COMPONENT Runtime)
# Override the monteverdi2.exe
# with the monteverdi.bat shortcut
# with the monteverdi2.bat shortcut
set(CPACK_NSIS_MENU_LINKS
"bin/monteverdi2.bat" "Monteverdi2" PARENT_SCOPE)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment