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

0001 project(khotkeys)
0002 set(PROJECT_VERSION "5.27.10")
0003 set(PROJECT_VERSION_MAJOR 5)
0004 
0005 cmake_minimum_required(VERSION 3.16)
0006 set(QT_MIN_VERSION "5.15.2")
0007 set(KF5_MIN_VERSION "5.102.0")
0008 set(KDE_COMPILERSETTINGS_LEVEL "5.82")
0009 
0010 
0011 
0012 include_directories(
0013     ${CMAKE_CURRENT_SOURCE_DIR}/libkhotkeysprivate
0014     ${CMAKE_CURRENT_BINARY_DIR}/libkhotkeysprivate
0015     ${CMAKE_CURRENT_BINARY_DIR}
0016 )
0017 
0018 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0019 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} )
0020 
0021 include(CMakePackageConfigHelpers)
0022 include(KDEInstallDirs)
0023 include(KDECMakeSettings)
0024 include(KDECompilerSettings NO_POLICY_SCOPE)
0025 include(ECMOptionalAddSubdirectory)
0026 include(KDEClangFormat)
0027 include(KDEGitCommitHooks)
0028 
0029 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0030     DBusAddons
0031     DocTools
0032     GlobalAccel
0033     I18n
0034     KCMUtils
0035     KIO
0036     TextWidgets
0037     XmlGui
0038     
0039     # TODO: remove kdelibs4support uses
0040     KDELibs4Support
0041 )
0042 
0043 find_package(X11 REQUIRED OPTIONAL_COMPONENTS Xtst)
0044 find_package(LibKWorkspace CONFIG REQUIRED)
0045 
0046 if(X11_FOUND)
0047     find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS X11Extras )
0048     set(HAVE_XTEST ${X11_XTest_FOUND})
0049     set(HAVE_X11 1)
0050 endif()
0051 
0052 configure_file(config-X11.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-X11.h)
0053 
0054 
0055 # Set KI18n translation domain
0056 add_definitions(-DTRANSLATION_DOMAIN=\"khotkeys\")
0057 
0058 # Convenience library
0059 add_subdirectory( libkhotkeysprivate )
0060 # has to be before kcm_hotkeys
0061 add_subdirectory( app )
0062 # kcm module to configure hotkeys
0063 add_subdirectory( kcm_hotkeys )
0064 # kdedmodule and standalone demon for hotkeys
0065 add_subdirectory( data )
0066 add_subdirectory( test )
0067 add_subdirectory( doc )
0068 kdoctools_install(po)
0069 
0070 # add clang-format target for all our real source files
0071 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
0072 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
0073 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
0074 
0075 ki18n_install(po)
0076 
0077 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)