Commit 086cfe86 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Adapt build system for building against qt6

parent 97988072
Pipeline #118266 passed with stage
in 38 seconds
......@@ -11,9 +11,6 @@ set(KF5_MIN_VERSION "5.82.0")
project(khangman VERSION ${RELEASE_SERVICE_VERSION})
include(FeatureSummary)
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Qml Quick QuickWidgets Svg)
find_package(ECM ${KF5_MIN_VERSION} NO_MODULE REQUIRED)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} )
......@@ -25,7 +22,11 @@ include(GenerateExportHeader)
include(ECMAddAppIcon)
include(ECMSetupVersion)
find_package(KF5 5.81.0 REQUIRED COMPONENTS
include(FeatureSummary)
find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Qml Quick QuickWidgets Svg)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
I18n
Crash
Completion
......
......@@ -22,8 +22,8 @@ kconfig_add_kcfg_files(khangman prefs.kcfgc)
# generate_export_header(khangman BASE_NAME KHANGMAN)
target_link_libraries(khangman
Qt5::QuickWidgets
Qt5::Core
Qt${QT_MAJOR_VERSION}::QuickWidgets
Qt${QT_MAJOR_VERSION}::Core
KF5::Crash
KF5::I18n
KF5::NewStuff
......
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