Embed the translation files in the binary

If a translation file exists in a "translations" directory located in
the same directory as the binary, it is used in priority (this can be
useful when working on translations as you don't have to recompile the
whole program all the time), and if no such file is found the embedded
translation file is used (if it exists).
This commit is contained in:
Guillaume LE VAILLANT
2017-12-15 18:44:01 +01:00
parent 319163d276
commit db2bc96512
4 changed files with 174 additions and 13 deletions

View File

@@ -355,6 +355,10 @@ endif()
add_definitions(-DAUTO_INITIALIZE_EASYLOGGINGPP)
# Generate header for embedded translations
add_subdirectory(translations)
include_directories("${CMAKE_CURRENT_BINARY_DIR}/translations")
add_subdirectory(external)
# Final setup for miniupnpc