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

0001 # SPDX-License-Identifier: BSD-3-Clause
0002 # SPDX-FileCopyrightText: 2020 Tomaz Canabrava <tcanabrava@kde.org>
0003 
0004 cmake_minimum_required(VERSION 3.16)
0005 #-----------------------------------------------------------------------------
0006 #                           GENERAL CONFIGURATION
0007 #-----------------------------------------------------------------------------
0008 project(plasma-firewall)
0009 set(PROJECT_VERSION "5.27.10")
0010 
0011 set(KF5_MIN_VERSION "5.102.0")
0012 set(KDE_COMPILERSETTINGS_LEVEL "5.82")
0013 set(QT_MIN_VERSION "5.15.2")
0014 
0015 set(CMAKE_AUTOMOC TRUE)
0016 set(CMAKE_AUTORCC TRUE)
0017 
0018 #-----------------------------------------------------------------------------
0019 #                                OPTIONS
0020 #-----------------------------------------------------------------------------
0021 
0022 include(FeatureSummary)
0023 
0024 option(BUILD_FIREWALLD_BACKEND "Build the firewalld backend" ON)
0025 add_feature_info(FIREWALLD_BACKEND ${BUILD_FIREWALLD_BACKEND} "Build the FirewallD backend")
0026 
0027 option(BUILD_UFW_BACKEND "Build the Uncomplicated Firewall (UFW) backend" ON)
0028 add_feature_info(UFW_BACKEND ${BUILD_UFW_BACKEND} "Build the Uncomplicated Firewall (UFW) backend")
0029 
0030 #-----------------------------------------------------------------------------
0031 #                              DEPENDENCIES
0032 #-----------------------------------------------------------------------------
0033 # Python3 (search for this first so that we will not get Python2 by accident)
0034 find_package(PythonInterp 3 REQUIRED)
0035 # KDE5
0036 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0037 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0038 include(KDEInstallDirs)
0039 include(KDECompilerSettings)
0040 include(KDECMakeSettings)
0041 include(ECMDeprecationSettings)
0042 
0043 # Qt5
0044 find_package(Qt${QT_MAJOR_VERSION} REQUIRED COMPONENTS
0045     Core
0046     Qml
0047     DBus
0048     Test
0049 )
0050 
0051 ecm_set_disabled_deprecation_versions(QT 5.15.2
0052     KF 5.101
0053 )
0054 
0055 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS 
0056     CoreAddons
0057     KCMUtils
0058     I18n
0059     Declarative
0060 )
0061 
0062 
0063 #-----------------------------------------------------------------------------
0064 #                               SOURCES
0065 #-----------------------------------------------------------------------------
0066 add_subdirectory(kcm)
0067 
0068 enable_testing(true)
0069 add_subdirectory(autotests)
0070 add_subdirectory(tests)
0071 
0072 #-----------------------------------------------------------------------------
0073 #                               Clang Format
0074 #-----------------------------------------------------------------------------
0075 include(KDEClangFormat)
0076 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
0077 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
0078 
0079 install(FILES org.kde.plasma.firewall.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0080 
0081 #-----------------------------------------------------------------------------
0082 #                                Translations
0083 #-----------------------------------------------------------------------------
0084 ki18n_install(po)
0085 
0086 #-----------------------------------------------------------------------------
0087 #                               BUILD SUMMARY
0088 #-----------------------------------------------------------------------------
0089 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)