mirror of
https://github.com/QuasarApp/SimpleQmlNotify.git
synced 2025-04-26 13:44:34 +00:00
fix find qt6
This commit is contained in:
parent
14e4f547d7
commit
c88befb346
@ -23,7 +23,9 @@ add_definitions(-DQMLNOTYFYSERICE_LIBRARY)
|
||||
|
||||
set(QML_IMPORT_PATH ${QML_IMPORT_PATH} "${CMAKE_CURRENT_SOURCE_DIR}" CACHE STRING "" FORCE)
|
||||
|
||||
if (NOT DEFINED QT_VERSION_MAJOR)
|
||||
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Quick QuickControls2 REQUIRED)
|
||||
endif()
|
||||
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Quick QuickControls2 REQUIRED)
|
||||
|
||||
file(GLOB SOURCE_CPP "*.cpp" "*.qrc")
|
||||
|
Loading…
x
Reference in New Issue
Block a user