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

View file

@ -63,6 +63,9 @@ if(Qt5Widgets_FOUND)
include_directories(${Qt5Svg_INCLUDE_DIRS})
list(APPEND ORACLE_LIBS Svg)
endif()
# guess plugins directory
set(QT_PLUGINS_DIR "${Qt5Widgets_DIR}/../../../plugins")
endif()
INCLUDE_DIRECTORIES(../cockatrice/src)

View file

@ -51,6 +51,9 @@ if(Qt5Widgets_FOUND)
include_directories(${Qt5Sql_INCLUDE_DIRS})
list(APPEND SERVATRICE_LIBS Sql)
endif()
# guess plugins directory
set(QT_PLUGINS_DIR "${Qt5Widgets_DIR}/../../../plugins")
endif()
SET(QT_DONT_USE_QTGUI TRUE)