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

0001 project(sddm-kcm)
0002 cmake_minimum_required(VERSION 3.16)
0003 set(PROJECT_VERSION "5.25.80")
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 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0010 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH}  ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
0011 include(ECMInstallIcons)
0012 include(KDEInstallDirs)
0013 include(KDECMakeSettings)
0014 include(KDECompilerSettings NO_POLICY_SCOPE)
0015 include(KDEClangFormat)
0016 include(FeatureSummary)
0017 include(KDEGitCommitHooks)
0018 
0019 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core Gui Widgets Quick QuickWidgets)
0020 
0021 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0022     CoreAddons
0023     I18n
0024     XmlGui
0025     Auth
0026     ConfigWidgets
0027     KIO
0028     Archive
0029     NewStuff
0030     Declarative
0031     KCMUtils
0032 )
0033 
0034 add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050c00)
0035 add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054200)
0036 
0037 add_definitions(-DTRANSLATION_DOMAIN=\"kcm_sddm\")
0038 add_definitions(-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
0039 
0040 kauth_install_actions(org.kde.kcontrol.kcmsddm kcm_sddm.actions)
0041 
0042 add_executable(kcmsddm_authhelper sddmauthhelper.cpp)
0043 target_link_libraries(kcmsddm_authhelper KF5::AuthCore KF5::ConfigCore KF5::Archive KF5::I18n)
0044 
0045 kauth_install_helper_files(kcmsddm_authhelper org.kde.kcontrol.kcmsddm root)
0046 install(TARGETS kcmsddm_authhelper DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
0047 
0048 #installer tool for knewstuff
0049 add_executable(sddmthemeinstaller
0050     sddmthemeinstaller.cpp
0051 )
0052 
0053 target_link_libraries(sddmthemeinstaller
0054     KF5::I18n
0055     KF5::AuthCore
0056     KF5::CoreAddons
0057     KF5::ConfigCore
0058     KF5::WidgetsAddons)
0059 install(TARGETS sddmthemeinstaller ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
0060 
0061 add_subdirectory(src)
0062 install(FILES sddmtheme.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR})
0063 
0064 # add clang-format target for all our real source files
0065 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
0066 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
0067 
0068 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
0069 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)