diff --git a/share/translations/CMakeLists.txt b/share/translations/CMakeLists.txt index 7380750e4..a5d8882be 100644 --- a/share/translations/CMakeLists.txt +++ b/share/translations/CMakeLists.txt @@ -1,3 +1,4 @@ +# Copyright (C) 2017 KeePassXC Team # Copyright (C) 2014 Felix Geyer # # This program is free software: you can redistribute it and/or modify @@ -21,6 +22,11 @@ message(STATUS "${TRANSLATION_FILES}") qt5_add_translation(QM_FILES ${TRANSLATION_FILES}) +if(MINGW) + file(GLOB QTBASE_TRANSLATIONS ${Qt5_DIR}/../../../share/qt5/translations/qtbase_*.qm) +endif() +set(QM_FILES ${QM_FILES} ${QTBASE_TRANSLATIONS}) + install(FILES ${QM_FILES} DESTINATION ${DATA_INSTALL_DIR}/translations) add_custom_target(translations DEPENDS ${QM_FILES}) add_dependencies(${PROGNAME} translations) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 42e1bdbd0..afa30056c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,5 @@ -# Copyright (C) 2010 Felix Geyer # Copyright (C) 2017 KeePassXC Team +# Copyright (C) 2010 Felix Geyer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -352,7 +352,7 @@ if(MINGW) include(DeployQt4) install_qt4_executable(${PROGNAME}.exe) add_custom_command(TARGET ${PROGNAME} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy_if_different ${Qt5Core_DIR}/../../../share/qt5/plugins/platforms/qwindows$<$:d>.dll + COMMAND ${CMAKE_COMMAND} -E copy_if_different ${Qt5_DIR}/../../../share/qt5/plugins/platforms/qwindows$<$:d>.dll $) install(FILES $/qwindows$<$:d>.dll DESTINATION "platforms") endif()