[nostalgia] Make portable between Qt5 and Qt6

This commit is contained in:
2021-03-30 21:25:01 -05:00
parent 8d62aca8a7
commit 2b469da8c3
6 changed files with 10 additions and 8 deletions

View File

@@ -3,8 +3,8 @@
if(NOSTALGIA_BUILD_TYPE STREQUAL "Native")
if(NOSTALGIA_BUILD_STUDIO)
find_package(Qt6Widgets REQUIRED)
find_package(Qt6QuickWidgets REQUIRED)
find_package(QT NAMES Qt6 Qt5 COMPONENTS QuickWidgets Widgets REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS QuickWidgets Widgets REQUIRED)
endif()
endif()