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.5")
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     Notifications
0029     WindowSystem
0030     Plasma
0031     I18n
0032     KIO
0033     Declarative
0034     BluezQt
0035 )
0036 
0037 find_package(SharedMimeInfo REQUIRED)
0038 
0039 find_package(KF5Kirigami2 ${KF5_MIN_VERSION} CONFIG)
0040 set_package_properties(KF5Kirigami2 PROPERTIES
0041     TYPE RUNTIME
0042 )
0043 
0044 include(KDECMakeSettings)
0045 include(KDECompilerSettings NO_POLICY_SCOPE)
0046 include(ECMOptionalAddSubdirectory)
0047 include(FeatureSummary)
0048 include(KDEClangFormat)
0049 include(ECMSetupVersion)
0050 include(ECMQtDeclareLoggingCategory)
0051 
0052 add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00)
0053 add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055900)
0054 
0055 include(KDEGitCommitHooks)
0056 
0057 ecm_setup_version(${PROJECT_VERSION}
0058     VARIABLE_PREFIX BLUEDEVIL
0059     VERSION_HEADER ${CMAKE_BINARY_DIR}/version.h
0060 )
0061 
0062 include_directories(${CMAKE_CURRENT_BINARY_DIR})
0063 
0064 add_subdirectory(src)
0065 
0066 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
0067 
0068 # add clang-format target for all our real source files
0069 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
0070 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
0071 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
0072 ecm_qt_install_logging_categories(
0073         EXPORT BLUEDEVIL
0074         FILE bluedevil.categories
0075         DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
0076         )