cmake: translations deps handling, build translations as a library

This commit is contained in:
xiphon
2020-07-09 15:13:21 +00:00
parent d931022963
commit c9d36b1302
4 changed files with 40 additions and 13 deletions

View File

@@ -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)

View File

@@ -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;