Skip to content

Commit

Permalink
Require newer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarazzam committed Dec 24, 2024
1 parent a8bd3c9 commit 1d6238c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
14 changes: 10 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ project(chessament VERSION 0.1)

include(FeatureSummary)

set(QT6_MIN_VERSION 6.7.0)
set(KF6_MIN_VERSION 6.5.0)
set(KIRIGAMI_ADDONS_MIN_VERSION 1.4.0)
set(QT6_MIN_VERSION 6.8.0)
set(KF6_MIN_VERSION 6.8.0)
set(KIRIGAMI_ADDONS_MIN_VERSION 1.6.0)

find_package(ECM ${KF6_MIN_VERSION} REQUIRED NO_MODULE)

Expand All @@ -21,13 +21,14 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(FeatureSummary)

include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECMakeSettings NO_POLICY_SCOPE)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMAddTests)

include(ECMSetupVersion)
include(ECMFindQmlModule)
include(ECMQmlModule)
include(ECMDeprecationSettings)

include(KDEGitCommitHooks)
include(KDEClangFormat)
Expand All @@ -37,6 +38,11 @@ ecm_setup_version(${PROJECT_VERSION}
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/version-chessament.h"
)

ecm_set_disabled_deprecation_versions(
QT ${QT6_MIN_VERSION}
KF ${KF6_MIN_VERSION}
)

find_package(Qt6 ${QT6_MIN_VERSION} REQUIRED COMPONENTS Core Gui Qml QuickControls2 Svg WebEngineQuick Widgets)
find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS Kirigami CoreAddons Config I18n ItemModels)

Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ target_link_libraries(chessament_static PUBLIC
Qt6::WebEngineQuick
Qt6::Widgets
KF6::I18n
KF6::I18nQml
KF6::CoreAddons
KF6::ConfigCore
KF6::ConfigGui
Expand Down
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "version-chessament.h"
#include <KAboutData>
#include <KLocalizedContext>
#include <KLocalizedQmlContext>
#include <KLocalizedString>

#include "chessamentconfig.h"
Expand Down Expand Up @@ -98,7 +98,7 @@ int main(int argc, char *argv[])

qmlRegisterSingletonInstance("dev.alcarazzam.chessament.private", 1, 0, "Config", config);

engine.rootContext()->setContextObject(new KLocalizedContext(&engine));
KLocalization::setupLocalizedContext(&engine);
engine.loadFromModule("dev.alcarazzam.chessament", u"Main"_s);

if (engine.rootObjects().isEmpty()) {
Expand Down

0 comments on commit 1d6238c

Please sign in to comment.