diff options
| author | David <25727384+ogniK5377@users.noreply.github.com> | 2020-07-18 22:43:37 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-18 22:43:37 +1000 |
| commit | 9943a478fe19dad4f770292b989179f71e2d10a0 (patch) | |
| tree | 7c1f7d2edc8841e5e9ac2c9a49da0d4314a3f8b2 /CMakeLists.txt | |
| parent | 4a8cb9a70671db5684dadf10061f3c3cf1d27741 (diff) | |
| parent | 4450a2688a8507dfece913e5c224bb497191ec7e (diff) | |
Merge pull request #3349 from FearlessTobi/translationnns
[WIP] yuzu: Port translation support from Citra v2
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ce46a2c2b..7a49318aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,7 @@ project(yuzu) option(ENABLE_SDL2 "Enable the SDL2 frontend" ON) option(ENABLE_QT "Enable the Qt frontend" ON) +option(ENABLE_QT_TRANSLATION "Enable translations for the Qt frontend" OFF) CMAKE_DEPENDENT_OPTION(YUZU_USE_BUNDLED_QT "Download bundled Qt binaries" ON "ENABLE_QT;MSVC" OFF) option(ENABLE_WEB_SERVICE "Enable web services (telemetry, etc.)" ON) @@ -224,6 +225,10 @@ if(ENABLE_QT) if (YUZU_USE_QT_WEB_ENGINE) find_package(Qt5 COMPONENTS WebEngineCore WebEngineWidgets) endif() + + if (ENABLE_QT_TRANSLATION) + find_package(Qt5 REQUIRED COMPONENTS LinguistTools ${QT_PREFIX_HINT}) + endif() if (NOT Qt5_FOUND) list(APPEND CONAN_REQUIRED_LIBS "qt/5.14.1@bincrafters/stable") endif() |
