This commit is contained in:
yzct12345 2024-03-03 02:08:58 +13:00 committed by GitHub
commit a8da272a70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 2 deletions

View file

@ -365,11 +365,15 @@ if(ENABLE_QT6 AND Qt6_LOCATION)
list(APPEND CMAKE_PREFIX_PATH "${Qt6_LOCATION}")
endif()
if (UNIX AND NOT APPLE)
find_package(X11 REQUIRED)
endif()
function(set_yuzu_qt_components)
# Best practice is to ask for all components at once, so they are from the same version
set(YUZU_QT_COMPONENTS2 Core Widgets Concurrent)
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
list(APPEND YUZU_QT_COMPONENTS2 DBus)
if (UNIX AND NOT APPLE)
list(APPEND YUZU_QT_COMPONENTS2 DBus X11Extras)
endif()
if (YUZU_USE_QT_MULTIMEDIA)
list(APPEND YUZU_QT_COMPONENTS2 Multimedia)