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

0001 cmake_minimum_required(VERSION 3.16)
0002 
0003 project(bluedevil)
0004 set(PROJECT_VERSION "5.25.80")
0005 set(PROJECT_VERSION_MAJOR 5)
0006 
0007 set(QT_MIN_VERSION "5.15.2")
0008 set(KF5_MIN_VERSION "5.94")
0009 set(KDE_COMPILERSETTINGS_LEVEL "5.82")
0010 
0011 set(CMAKE_CXX_STANDARD 17)
0012 set(CMAKE_CXX_STANDARD_REQUIRED ON)
0013 
0014 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0015 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0016 include(KDEInstallDirs)
0017 
0018 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
0019     Core
0020     Widgets
0021     Qml
0022     DBus)
0023 
0024 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0025     CoreAddons
0026     WidgetsAddons
0027     DBusAddons
0028     DocTools
0029     Notifications
0030     WindowSystem
0031     Plasma
0032     I18n
0033     KIO
0034     Declarative
0035     BluezQt
0036     KCMUtils
0037 )
0038 
0039 find_package(SharedMimeInfo REQUIRED)
0040 
0041 find_package(KF5Kirigami2 ${KF5_MIN_VERSION} CONFIG)
0042 set_package_properties(KF5Kirigami2 PROPERTIES
0043     TYPE RUNTIME
0044 )
0045 
0046 include(KDECMakeSettings)
0047 include(KDECompilerSettings NO_POLICY_SCOPE)
0048 include(ECMOptionalAddSubdirectory)
0049 include(FeatureSummary)
0050 include(KDEClangFormat)
0051 include(ECMSetupVersion)
0052 include(ECMQtDeclareLoggingCategory)
0053 
0054 add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00)
0055 add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055900)
0056 
0057 include(KDEGitCommitHooks)
0058 
0059 ecm_setup_version(${PROJECT_VERSION}
0060     VARIABLE_PREFIX BLUEDEVIL
0061     VERSION_HEADER ${CMAKE_BINARY_DIR}/version.h
0062 )
0063 
0064 include_directories(${CMAKE_CURRENT_BINARY_DIR})
0065 
0066 add_subdirectory(src)
0067 
0068 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
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 ecm_qt_install_logging_categories(
0075         EXPORT BLUEDEVIL
0076         FILE bluedevil.categories
0077         DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
0078         )
0079 
0080 add_subdirectory(doc)