search for Qt6 then Qt5

This commit is contained in:
Alexander Kavon 2023-12-21 23:22:06 -05:00
parent 101492fff7
commit 58c12b85ef

View File

@ -5,12 +5,11 @@
macro(qsk_setup_Qt) macro(qsk_setup_Qt)
# Often users have several Qt installations on their system and # Define a package QT, attempt Qt6, if not fallback to Qt5
# need to be able to explicitly the one to be used. Let's see if find_package(QT NAMES Qt6 REQUIRED COMPONENTS Quick)
# standard cmake features are good enough or if we need to introduce if (NOT QT_FOUND)
# something sort of additional option. TODO ... find_package(QT "5.15" NAMES Qt5 REQUIRED COMPONENTS Quick)
endif()
find_package(QT "5.15" NAMES Qt6 Qt5 REQUIRED COMPONENTS Quick)
if ( QT_FOUND ) if ( QT_FOUND )