Warning, /plasma/milou/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.16)
0002 
0003 project(Milou)
0004 set(PROJECT_VERSION "6.0.80")
0005 set(PROJECT_VERSION_MAJOR 6)
0006 
0007 set(PROJECT_DEP_VERSION "6.0.80")
0008 set(QT_MIN_VERSION "6.6.0")
0009 set(KF6_MIN_VERSION "5.240.0")
0010 set(KDE_COMPILERSETTINGS_LEVEL "5.82")
0011 
0012 set(CMAKE_CXX_STANDARD 20)
0013 set(CMAKE_CXX_STANDARD_REQUIRED ON)
0014 
0015 find_package(ECM ${KF6_MIN_VERSION} REQUIRED NO_MODULE)
0016 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0017 
0018 
0019 include(FeatureSummary)
0020 include(KDEInstallDirs)
0021 include(KDECMakeSettings)
0022 include(KDECompilerSettings NO_POLICY_SCOPE)
0023 include(ECMAddTests)
0024 include(GenerateExportHeader)
0025 include(KDEClangFormat)
0026 include(KDEGitCommitHooks)
0027 include(ECMQmlModule)
0028 
0029 find_package(Qt6 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Qml Quick Widgets)
0030 find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS I18n Runner Svg)
0031 find_package(Plasma ${PROJECT_DEP_VERSION} REQUIRED)
0032 
0033 add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00)
0034 
0035 add_definitions(-DQT_NO_FOREACH -DQT_NO_KEYWORDS)
0036 
0037 add_subdirectory(lib)
0038 add_subdirectory(plasmoid)
0039 
0040 # add clang-format target for all our real source files
0041 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
0042 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
0043 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
0044 
0045 ki18n_install(po)
0046 
0047 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)