Warning, /plasma/plasma-welcome/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0002 # SPDX-FileCopyrightText: 2021 Felipe Kinoshita <kinofhek@gmail.com> 0003 # SPDX-FileCopyrightText: 2022 Nate Graham <nate@kde.org> 0004 0005 cmake_minimum_required(VERSION 3.16) 0006 0007 project(welcome) 0008 0009 include(FeatureSummary) 0010 0011 set(PROJECT_VERSION "5.27.10") 0012 set(REQUIRED_QT_VERSION 5.15.2) 0013 set(KF5_MIN_VERSION 5.98) 0014 0015 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE) 0016 0017 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH}) 0018 0019 include(KDEClangFormat) 0020 include(KDEGitCommitHooks) 0021 include(KDEInstallDirs) 0022 include(KDECMakeSettings) 0023 include(KDECompilerSettings NO_POLICY_SCOPE) 0024 include(ECMSetupVersion) 0025 include(ECMGenerateHeaders) 0026 include(ECMPoQmTools) 0027 include(ECMQmlModule) 0028 include(ECMDeprecationSettings) 0029 0030 set(DISTRO_PAGE_PATH "/usr/share/plasma-welcome-extra-pages/" CACHE STRING "Path on disk to find custom pages") 0031 0032 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h *.hpp *.c) 0033 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) 0034 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT) 0035 0036 ecm_setup_version(${PROJECT_VERSION} 0037 VARIABLE_PREFIX PLASMA_WELCOME 0038 VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/plasma-welcome-version.h" 0039 ) 0040 0041 find_package(Qt${QT_MAJOR_VERSION} ${REQUIRED_QT_VERSION} REQUIRED COMPONENTS Core Gui Network Qml QuickControls2 Svg) 0042 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Kirigami2 CoreAddons ConfigWidgets DBusAddons Declarative I18n KIO NewStuff Notifications Plasma Service WindowSystem) 0043 find_package(KUserFeedback) 0044 find_package(KAccounts REQUIRED) 0045 0046 ecm_set_disabled_deprecation_versions(QT 5.15.2 0047 KF 5.101 0048 ) 0049 0050 add_subdirectory(src) 0051 0052 install(PROGRAMS org.kde.plasma-welcome.desktop DESTINATION ${KDE_INSTALL_APPDIR}) 0053 install(FILES org.kde.plasma-welcome.desktop DESTINATION ${KDE_INSTALL_AUTOSTARTDIR}) 0054 install(FILES org.kde.plasma-welcome.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR}) 0055 0056 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) 0057 0058 ki18n_install(po)