diff --git a/CMakeLists.txt b/CMakeLists.txt index 35215e6..6b56fd2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,7 @@ include(KDEInstallDirs) include(KDECMakeSettings) include(KDECompilerSettings NO_POLICY_SCOPE) include(ECMSetupVersion) +include(ECMDeprecationSettings) include(ECMGenerateHeaders) include(CMakePackageConfigHelpers) include(FeatureSummary) @@ -30,6 +31,7 @@ include(GenerateExportHeader) include(KDEClangFormat) include(ECMQtDeclareLoggingCategory) + find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS WaylandClient Qml) if (QT_MAJOR_VERSION EQUAL "5") find_package(Qt5XkbCommonSupport REQUIRED PRIVATE) @@ -53,6 +55,11 @@ ecm_setup_version(${PROJECT_VERSION} VARIABLE_PREFIX LAYERSHELLQT file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h) kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) + +ecm_set_disabled_deprecation_versions(QT 5.15.2 + KF 5.101 +) + add_subdirectory(src) add_subdirectory(tests)