|
|
|
|
@ -30,7 +30,6 @@ option(NONET "Disable network support" OFF)
|
|
|
|
|
option(NOSOUND "Disable sound support" OFF) |
|
|
|
|
option(RUN_TESTS "Build and run tests" OFF) |
|
|
|
|
option(ENABLE_CODECOVERAGE "Instrument code for code coverage (only enabled with RUN_TESTS)" OFF) |
|
|
|
|
option(USE_GETTEXT "Build translation files using gettext" OFF) |
|
|
|
|
|
|
|
|
|
if(NOT NONET) |
|
|
|
|
option(DISABLE_TCP "Disable TCP multiplayer option" OFF) |
|
|
|
|
@ -606,8 +605,8 @@ if(GPERF)
|
|
|
|
|
find_package(Gperftools REQUIRED) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
if(USE_GETTEXT) |
|
|
|
|
find_package(Gettext) |
|
|
|
|
find_package(Gettext) |
|
|
|
|
if (Gettext_FOUND) |
|
|
|
|
foreach(lang bg da de es fr hr it ko_KR pt_BR ru sv zh_CN zh_TW) |
|
|
|
|
GETTEXT_PROCESS_PO_FILES(${lang} ALL PO_FILES ${CMAKE_CURRENT_LIST_DIR}/Translations/${lang}.po) |
|
|
|
|
list(APPEND devilutionx_TRANSLATIONS ${CMAKE_CURRENT_BINARY_DIR}/${lang}.gmo) |
|
|
|
|
|