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