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

0001 project(plasma-nano)
0002 
0003 # minimal requirements
0004 cmake_minimum_required(VERSION 3.16)
0005 set (QT_MIN_VERSION "5.15.2")
0006 set(KF5_MIN_VERSION "5.94")
0007 set(KDE_COMPILERSETTINGS_LEVEL "5.82")
0008 
0009 set(CMAKE_CXX_STANDARD 17)
0010 set(CMAKE_CXX_STANDARD_REQUIRED ON)
0011 
0012 set(CMAKE_AUTOMOC ON)
0013 set(CMAKE_INCLUDE_CURRENT_DIR ON)
0014 
0015 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0016 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
0017 
0018 include(KDEInstallDirs)
0019 include(KDECMakeSettings)
0020 include(KDECompilerSettings)
0021 include(ECMOptionalAddSubdirectory)
0022 include(ECMInstallIcons)
0023 include(ECMSetupVersion)
0024 include(ECMMarkNonGuiExecutable)
0025 include(ECMGenerateHeaders)
0026 include(KDEClangFormat)
0027 include(KDEGitCommitHooks)
0028 include(GenerateExportHeader)
0029 include(FeatureSummary)
0030 
0031 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED Core Gui Qml Quick)
0032 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Plasma WindowSystem Wayland)
0033 
0034 
0035 
0036 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
0037 
0038 include(CheckIncludeFiles)
0039 
0040 plasma_install_package(shell org.kde.plasma.nano shells)
0041 plasma_install_package(desktoptoolbox org.kde.plasma.nano.desktoptoolbox packages package)
0042 add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00)
0043 add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055900)
0044 
0045 add_subdirectory(components)
0046 
0047 # add clang-format target for all our real source files
0048 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
0049 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
0050 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)