Qt5: fix plugin installation

This commit is contained in:
Fabio Bas 2014-06-25 15:53:25 +02:00
parent 809f390e2f
commit c4458b16b2
3 changed files with 10 additions and 1 deletions

View file

@ -201,10 +201,13 @@ if(Qt5Widgets_FOUND)
list(APPEND COCKATRICE_LIBS LinguistTools)
endif()
# Let cmake chew Qt4's translations and resource files
# Let cmake chew Qt5's translations and resource files
# Note: header files are MOC-ed automatically by cmake
QT5_ADD_TRANSLATION(cockatrice_QM ${cockatrice_TS})
QT5_ADD_RESOURCES(cockatrice_RESOURCES_RCC ${cockatrice_RESOURCES})
# guess plugins directory
set(QT_PLUGINS_DIR "${Qt5Widgets_DIR}/../../../plugins")
endif()
# Declare path variables