cmake: Move Qt5 search to DolphinQt build script

This commit is contained in:
Florent Castelli 2017-01-26 14:00:28 +01:00
parent c5d4ae6163
commit 62c439814f
2 changed files with 3 additions and 5 deletions

View File

@ -876,11 +876,6 @@ if (OPENSLES_LIBRARIES AND OPENSLES_INCLUDE_DIR)
message(STATUS "OpenSLES found, enabling OpenSLES sound backend")
endif()
if(ENABLE_QT2)
find_package(Qt5Widgets REQUIRED)
message(STATUS "Found Qt version ${Qt5Core_VERSION}, enabling the Qt backend")
endif()
if(NOT DISABLE_WX)
find_package(wxWidgets COMPONENTS core aui adv)

View File

@ -1,3 +1,6 @@
find_package(Qt5Widgets REQUIRED)
message(STATUS "Found Qt version ${Qt5Core_VERSION}")
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_definitions(-DQT_USE_QSTRINGBUILDER -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII)