share/hedgewars/Data/Locale/CMakeLists.txt
branchqmlfrontend
changeset 12860 1b2b84315d27
parent 10388 665d8b699d35
child 14822 d3f72c73ed6d
--- 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}