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 "5.27.10")
0005 set(PROJECT_VERSION_MAJOR 5)
0006 
0007 set(QT_MIN_VERSION "5.15.2")
0008 set(KF5_MIN_VERSION "5.102.0")
0009 set(KDE_COMPILERSETTINGS_LEVEL "5.82")
0010 
0011 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0012 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0013 
0014 
0015 include(FeatureSummary)
0016 include(KDEInstallDirs)
0017 include(KDECMakeSettings)
0018 include(KDECompilerSettings NO_POLICY_SCOPE)
0019 include(ECMAddTests)
0020 include(GenerateExportHeader)
0021 include(KDEClangFormat)
0022 include(KDEGitCommitHooks)
0023 
0024 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Qml Quick Widgets)
0025 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS CoreAddons I18n Declarative ItemModels Service Plasma Runner)
0026 
0027 add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00)
0028 
0029 add_definitions(-DQT_NO_FOREACH -DQT_NO_KEYWORDS)
0030 
0031 add_subdirectory(lib)
0032 add_subdirectory(plasmoid)
0033 
0034 # add clang-format target for all our real source files
0035 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
0036 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
0037 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
0038 
0039 ki18n_install(po)
0040 
0041 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)