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

0001 project(kde-gtk-config)
0002 set(PROJECT_VERSION "5.25.80")
0003 cmake_minimum_required(VERSION 3.16)
0004 
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 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0013 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" ${ECM_MODULE_PATH})
0014 
0015 include(ECMSetupVersion)
0016 include(ECMInstallIcons)
0017 include(ECMMarkAsTest)
0018 include(GenerateExportHeader)
0019 include(FeatureSummary)
0020 include(KDEInstallDirs)
0021 include(KDECMakeSettings)
0022 include(KDECompilerSettings NO_POLICY_SCOPE)
0023 include(KDEClangFormat)
0024 include(KDEGitCommitHooks)
0025 
0026 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS DBus Svg)
0027 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS CoreAddons Config ConfigWidgets GuiAddons DBusAddons)
0028 find_package(PkgConfig REQUIRED)
0029 find_package(KDecoration2 REQUIRED)
0030 find_package(GSettingSchemas REQUIRED)
0031 find_package(Sass REQUIRED)
0032 find_package(XSettingsd)
0033 
0034 pkg_check_modules(GTK+3 REQUIRED IMPORTED_TARGET gtk+-3.0)
0035 pkg_check_modules(GLib2 REQUIRED IMPORTED_TARGET glib-2.0)
0036 pkg_check_modules(GObject REQUIRED IMPORTED_TARGET gobject-2.0)
0037 pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)
0038 
0039 
0040 set_package_properties(XSettingsd PROPERTIES
0041     DESCRIPTION "XSettingsd daemon"
0042     TYPE RUNTIME
0043     PURPOSE "Required to apply settings to GTK applications on the fly"
0044 )
0045 
0046 set_package_properties(Sass PROPERTIES
0047     DESCRIPTION "SASS compiler"
0048     URL "https://sass-lang.com/"
0049     PURPOSE "Required for building a modification, that allows Breeze GTK to change it's window decorations' appearance"
0050 )
0051 
0052 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake kded/config.h)
0053 
0054 add_subdirectory(gtk3proxies)
0055 add_subdirectory(kded)
0056 add_subdirectory(kconf_update)
0057 add_subdirectory(color-reload-module)
0058 add_subdirectory(window-decorations-reload-module)
0059 
0060 # add clang-format target for all our real source files
0061 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
0062 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
0063 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
0064 
0065 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)