Commit f3554d87 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Prepare to build against qt6

parent 2f78eaaf
Pipeline #133380 passed with stage
in 35 seconds
......@@ -13,9 +13,12 @@ set (KF5_MIN_VERSION "5.89.0")
find_package(ECM ${KF5_MIN_VERSION} CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
set(QT_REQUIRED_VERSION "5.15.2")
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets Concurrent)
include(KDEInstallDirs)
find_package(Qt${QT_MAJOR_VERSION} ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets Concurrent)
if (QT_MAJOR_VERSION STREQUAL "6")
find_package(Qt6Core5Compat)
endif()
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMSetupVersion)
......
......@@ -19,8 +19,8 @@ ecm_add_app_icon(kfind_SRCS ICONS ${ICONS_SRCS})
target_link_libraries(kfind
Qt::Concurrent
Qt::Widgets
Qt${QT_MAJOR_VERSION}::Concurrent
Qt${QT_MAJOR_VERSION}::Widgets
KF5::Archive
KF5::CoreAddons
KF5::FileMetaData
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment