[QDark] Make portable between Qt5 and Qt6

This commit is contained in:
Gary Talent 2021-03-30 21:25:41 -05:00
parent 2b469da8c3
commit 35d7a4d828

View File

@ -1,5 +1,6 @@
find_package(Qt6Widgets REQUIRED)
find_package(QT NAMES Qt6 Qt5 COMPONENTS Widgets REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets REQUIRED)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
@ -17,6 +18,6 @@ target_include_directories(
target_link_libraries(
QDarkStyle
Qt6::Widgets
Qt${QT_VERSION_MAJOR}::Widgets
)