--- a/share/hedgewars/Data/Locale/CMakeLists.txt Thu Aug 11 23:05:14 2016 +0300
+++ b/share/hedgewars/Data/Locale/CMakeLists.txt Sun Dec 17 00:09:24 2017 +0100
@@ -1,5 +1,4 @@
-find_package(Qt4 REQUIRED)
-include(${QT_USE_FILE})
+find_package(Qt5 COMPONENTS LinguistTools)
file(GLOB txttrans2 ??.txt)
file(GLOB txttrans5 ?????.txt)
@@ -9,7 +8,7 @@
file(GLOB campaignfiles campaigns_*.txt)
file(GLOB tipfiles tips_*.xml)
-QT4_ADD_TRANSLATION(QM ${tsfiles})
+QT5_ADD_TRANSLATION(QM ${tsfiles})
add_custom_target (release-translation ALL
DEPENDS ${QM}