Commit 090162d6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Adapt build system for building against qt6

parent 05183343
Pipeline #115737 passed with stage
in 39 seconds
......@@ -13,7 +13,7 @@ set(KREVERSI_VERSION "${KREVERSI_BASE_VERSION}.${RELEASE_SERVICE_COMPACT_VERSION
project(kreversi VERSION ${KREVERSI_VERSION})
set (QT_MIN_VERSION "5.15.0")
set (KF5_MIN_VERSION "5.89.0")
set (KF5_MIN_VERSION "5.90.0")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
......@@ -27,7 +27,7 @@ include(ECMInstallIcons)
include(ECMSetupVersion)
include(FeatureSummary)
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Qml Quick QuickWidgets Svg Test)
find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Qml Quick QuickWidgets Svg Test)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Config
ConfigWidgets
......
......@@ -4,7 +4,7 @@
########### install files ###############
install( FILES kreversi.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR} )
install( FILES kreversi.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFYRCDIR} )
install( FILES reversi-click.wav reversi-won.wav DESTINATION ${KDE_INSTALL_DATADIR}/kreversi/sounds )
......
......@@ -64,7 +64,7 @@ target_link_libraries(kreversi
KF5::KIOFileWidgets
KF5::WidgetsAddons
KF5::XmlGui
Qt::Svg
Qt${QT_MAJOR_VERSION}::Svg
)
install(TARGETS kreversi ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
......
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