Merge pull request #4803 from Orphis/cmake_qt

cmake: Move Qt5 search to DolphinQt build script
This commit is contained in:
Mat M 2017-02-01 18:06:00 -05:00 committed by GitHub
commit f20113fce2
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") message(STATUS "OpenSLES found, enabling OpenSLES sound backend")
endif() endif()
if(ENABLE_QT2)
find_package(Qt5Widgets REQUIRED)
message(STATUS "Found Qt version ${Qt5Core_VERSION}, enabling the Qt backend")
endif()
if(NOT DISABLE_WX) if(NOT DISABLE_WX)
find_package(wxWidgets COMPONENTS core aui adv) 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}) include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_definitions(-DQT_USE_QSTRINGBUILDER -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII) add_definitions(-DQT_USE_QSTRINGBUILDER -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII)