Warning, /plasma/plymouth-kcm/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 3.16) 0002 project(plymouthkcm) 0003 0004 set(KF6_MIN_VERSION "5.240.0") 0005 set(KDE_COMPILERSETTINGS_LEVEL "5.82") 0006 set(QT_MIN_VERSION "6.6.0") 0007 0008 set(CMAKE_CXX_STANDARD 20) 0009 set(CMAKE_CXX_STANDARD_REQUIRED ON) 0010 0011 if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") 0012 message(FATAL_ERROR "plymouthkcm requires an out of source build. Please create a separate build directory and run 'cmake path_to_plymouth_kcm [options]' there.") 0013 endif() 0014 0015 set(PROJECT_VERSION "6.0.0") 0016 set(PROJECT_VERSION_MAJOR 6) 0017 0018 find_package(ECM ${KF6_MIN_VERSION} REQUIRED NO_MODULE) 0019 0020 # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked 0021 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${ECM_MODULE_PATH}) 0022 0023 include(FeatureSummary) 0024 include(ECMSetupVersion) 0025 include(ECMGenerateHeaders) 0026 include(KDEInstallDirs) 0027 include(KDECMakeSettings) 0028 include(KDECompilerSettings NO_POLICY_SCOPE) 0029 include(KDEClangFormat) 0030 include(KDEGitCommitHooks) 0031 include(ECMDeprecationSettings) 0032 0033 find_package(Qt6 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Core Quick Test Gui) 0034 0035 find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS 0036 Auth Archive NewStuff NewStuffCore KIO I18n Config KCMUtils) 0037 0038 find_package(Plymouth REQUIRED) 0039 0040 add_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_URL_CAST_FROM_STRING) 0041 0042 ecm_set_disabled_deprecation_versions(QT 6.5 0043 KF 5.240 0044 ) 0045 0046 add_subdirectory(src) 0047 0048 # add clang-format target for all our real source files 0049 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h) 0050 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) 0051 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT) 0052 0053 ki18n_install(po) 0054 0055 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)