aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-07-09 15:13:21 +0000
committerxiphon <xiphon@protonmail.com>2020-07-09 16:42:32 +0000
commitc9d36b1302dc5caf2d1db03e8fb284cbb2255ace (patch)
treefbf4e31e577648d55524556b21bdb3ad4e0c9359 /src
parentd93102296349f46b81c159b9f2ebe9ec75f50cb8 (diff)
downloadmonzero-gui-c9d36b1302dc5caf2d1db03e8fb284cbb2255ace.tar.gz
monzero-gui-c9d36b1302dc5caf2d1db03e8fb284cbb2255ace.tar.xz
monzero-gui-c9d36b1302dc5caf2d1db03e8fb284cbb2255ace.zip
cmake: translations deps handling, build translations as a library
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt3
-rw-r--r--src/main/main.cpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 23af9a05..b73bff79 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -6,7 +6,7 @@ add_subdirectory(model)
add_subdirectory(openpgp)
add_subdirectory(zxcvbn-c)
-qt5_add_resources(RESOURCES ../qml.qrc ${TRANSLATIONS_QRC})
+qt5_add_resources(RESOURCES ../qml.qrc)
# Compile source files (.h/.cpp)
file(GLOB SOURCE_FILES
@@ -148,6 +148,7 @@ target_link_libraries(monero-wallet-gui
${EXTRA_LIBRARIES}
${ICU_LIBRARIES}
openpgp
+ translations
)
if(DEVICE_TREZOR_READY)
diff --git a/src/main/main.cpp b/src/main/main.cpp
index 18986409..d7788dc6 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -147,6 +147,8 @@ bool isOpenGL = true;
int main(int argc, char *argv[])
{
+ Q_INIT_RESOURCE(translations);
+
// platform dependant settings
#if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS)
bool isDesktop = true;