Warning, /libraries/plasma-wayland-protocols/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2020 Aleix Pol Gonzalez <aleixpol@kde.org>
0002 #
0003 # SPDX-License-Identifier: BSD-3-Clause
0004 
0005 cmake_minimum_required(VERSION 3.5)
0006 
0007 project(PlasmaWaylandProtocols VERSION 1.12.0)
0008 
0009 include(FeatureSummary)
0010 include(CMakePackageConfigHelpers)
0011 
0012 # ECM setup
0013 find_package(ECM 5.69.0  NO_MODULE)
0014 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://commits.kde.org/extra-cmake-modules")
0015 feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES)
0016 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/Modules)
0017 include(KDEInstallDirs)
0018 include(ECMSetupVersion)
0019 
0020 add_subdirectory(src)
0021 
0022 # create a Config.cmake and a ConfigVersion.cmake file and install them
0023 set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/PlasmaWaylandProtocols")
0024 
0025 configure_package_config_file("${CMAKE_CURRENT_SOURCE_DIR}/PlasmaWaylandProtocolsConfig.cmake.in"
0026                               "${CMAKE_CURRENT_BINARY_DIR}/PlasmaWaylandProtocolsConfig.cmake"
0027                               INSTALL_DESTINATION  ${CMAKECONFIG_INSTALL_DIR}
0028                               PATH_VARS KDE_INSTALL_DATADIR
0029                               )
0030 ecm_setup_version(PROJECT VARIABLE_PREFIX PLASMA_WAYLAND_PROTOCOLS
0031                         VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/plasma_wayland_protocols_version.h"
0032                         PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/PlasmaWaylandProtocolsConfigVersion.cmake"
0033                         SOVERSION 5)
0034 
0035 install(FILES  "${CMAKE_CURRENT_BINARY_DIR}/PlasmaWaylandProtocolsConfig.cmake"
0036                "${CMAKE_CURRENT_BINARY_DIR}/PlasmaWaylandProtocolsConfigVersion.cmake"
0037         DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
0038         COMPONENT Devel )
0039 
0040 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)