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

0001 project(ksshaskpass)
0002 cmake_minimum_required(VERSION 3.16)
0003 set(PROJECT_VERSION "5.27.10")
0004 
0005 set(QT_MIN_VERSION "5.15.2")
0006 set(KF5_MIN_VERSION "5.102.0")
0007 set(KDE_COMPILERSETTINGS_LEVEL "5.82")
0008 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0009 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0010 
0011 include(KDEInstallDirs)
0012 include(KDECompilerSettings NO_POLICY_SCOPE)
0013 include(KDECMakeSettings)
0014 include(FeatureSummary)
0015 include(ECMQtDeclareLoggingCategory)
0016 include(KDEClangFormat)
0017 include(KDEGitCommitHooks)
0018 include(ECMDeprecationSettings)
0019 
0020 find_package(Qt${QT_MAJOR_VERSION}  ${QT_MIN_VERSION} REQUIRED COMPONENTS Core)
0021 
0022 
0023 add_definitions(-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
0024 
0025 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0026     CoreAddons
0027     I18n
0028     Wallet
0029     WidgetsAddons
0030 )
0031 
0032 find_package(KF5DocTools)
0033 set_package_properties(KF5DocTools PROPERTIES TYPE OPTIONAL
0034    PURPOSE "Required to build ksshaskpass manpage")
0035 
0036 ecm_set_disabled_deprecation_versions(QT 5.15.2
0037     KF 5.101
0038 )
0039 
0040 set(ksshaskpass_SRCS src/main.cpp)
0041  
0042 add_executable(ksshaskpass ${ksshaskpass_SRCS})
0043 target_compile_definitions(ksshaskpass PRIVATE -DPROJECT_VERSION="${PROJECT_VERSION}")
0044 target_link_libraries(ksshaskpass 
0045     KF5::CoreAddons
0046     KF5::I18n
0047     KF5::Wallet
0048     KF5::WidgetsAddons
0049 )
0050 
0051 # add clang-format target for all our real source files
0052 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
0053 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
0054 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
0055 
0056 install(TARGETS ksshaskpass DESTINATION ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0057 
0058 if (KF5DocTools_FOUND)
0059     add_subdirectory(doc)
0060 endif()
0061 
0062 ki18n_install(po)
0063 
0064 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)