Allow docdir to be defined at build-time

- Simplify by using GNUInstallDirs module
- Move html documentation into an html subdirectory
This commit is contained in:
Chris Mayo
2017-01-14 16:16:20 +00:00
parent 6f49df9612
commit b0cfb4e933
4 changed files with 24 additions and 24 deletions

View File

@@ -11,7 +11,7 @@ if (GETTEXT_FOUND)
foreach(LANG ${LANGUAGES})
GETTEXT_PROCESS_PO_FILES(${LANG} ALL PO_FILES ${LANG}.po)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${LANG}.gmo"
DESTINATION "${CMAKE_INSTALL_PREFIX}/${DATADIR}/locale/${LANG}/LC_MESSAGES"
DESTINATION "${CMAKE_INSTALL_LOCALEDIR}/${LANG}/LC_MESSAGES"
RENAME "${GETTEXT_PACKAGE}.mo")
endforeach ()
endif()