From f954514c5ed65b671c694f61d67d2058e10c6096 Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 6 Jan 2016 16:05:36 +0100 Subject: [PATCH] Changed: Link to Qt5WinExtras under Windows --- code/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index ae2b7257f..1e82448fd 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -238,6 +238,10 @@ IF(WITH_QT5) FIND_PACKAGE(Qt5LinguistTools) FIND_PACKAGE(Qt5Network) + IF(WIN32) + FIND_PACKAGE(Qt5WinExtras) + ENDIF() + IF(QT_STATIC) ADD_DEFINITIONS(-DQT_STATICPLUGIN) @@ -246,6 +250,10 @@ IF(WITH_QT5) # Gui SET(QT_LIBRARIES ${QT_LIBRARIES} Qt5::Gui Qt5::OpenGL) + IF(WIN32) + SET(QT_LIBRARIES ${QT_LIBRARIES} Qt5::WinExtras) + ENDIF() + ADD_QT_LIBRARY(PrintSupport) IF(WIN32)