summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorStefan Wildemann <metalstrolch@users.noreply.github.com>2017-04-24 11:19:49 +0200
committerGitHub <noreply@github.com>2017-04-24 11:19:49 +0200
commitf221cd197fc8ef915b76c3b7b170ccd76178ad74 (patch)
tree90782890a6d126983d22244e473eb7c3cca9420c /po
parentc25b3e102955e12ff1409c0a85a15f848e2d8225 (diff)
downloadnavit-f221cd197fc8ef915b76c3b7b170ccd76178ad74.tar.gz
Fix: Allow unusual building (#215)R7404
* Support unusual building This patch updates navits cmake system to allow more unusual build and install path configurations as well as renaming the navit binary. This sis required for restricted environments like Sailfish OS harbour that do not follow usual path conventions. You can now: redefine the binary name (NAVIT_BINARY) control the translation file names (PACKAGE) select the library directory (LIB_DIR) select the share directory (SHARE_DIR) select the locales directory (LOCALE_DIR) select the images directory (IMAGE_DIR) select the man directory (MAN_DIR) the .desktop file is updated and the man file is renamed according to this and the install prefix is still honoured.
Diffstat (limited to 'po')
-rw-r--r--po/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
index de83bb52b..1967005b4 100644
--- a/po/CMakeLists.txt
+++ b/po/CMakeLists.txt
@@ -84,7 +84,7 @@ foreach (LANG ${LANGUAGES})
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_BINARY_DIR}/${LANG}.mo" "${PROJECT_BINARY_DIR}/locale/${LANG}/LC_MESSAGES/navit.mo"
)
SET(MOFILES ${CMAKE_CURRENT_BINARY_DIR}/${LANG}.mo ${MOFILES})
- INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${LANG}.mo DESTINATION ${LOCALE_DIR}/${LANG}/LC_MESSAGES RENAME navit.mo)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${LANG}.mo DESTINATION ${LOCALE_DIR}/${LANG}/LC_MESSAGES RENAME ${PACKAGE}.mo)
endforeach(LANG ${LANGUAGES})
add_custom_target(locales ALL DEPENDS ${MOFILES})