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

0001 # SPDX-FileCopyrightText: 2019 Jonah BrĂ¼chert <jbb@kaidan.im>
0002 # SPDX-FileCopyrightText: 2020 Nicolas Fella <nicolas.fella@gmx.de>
0003 #
0004 # SPDX-License-Identifier: BSD-2-Clause
0005 cmake_minimum_required(VERSION 3.16)
0006 
0007 project(qrca VERSION 0.1)
0008 
0009 set(QT_MIN_VERSION "5.15.0")
0010 set(KF5_MIN_VERSION "5.94.0")
0011 set(KDE_COMPILERSETTINGS_LEVEL "5.82")
0012 
0013 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0014 
0015 # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
0016 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
0017 
0018 include(FeatureSummary)
0019 include(ECMSetupVersion)
0020 include(ECMGenerateHeaders)
0021 include(KDEInstallDirs)
0022 include(KDECMakeSettings)
0023 include(ECMPoQmTools)
0024 include(KDECompilerSettings NO_POLICY_SCOPE)
0025 include(KDEClangFormat)
0026 kde_enable_exceptions()
0027 
0028 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Core Quick Test Gui Svg QuickControls2 Multimedia Concurrent)
0029 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Kirigami2 I18n Contacts CoreAddons Notifications Prison)
0030 
0031 if(NOT ANDROID)
0032     find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Purpose Service KIO)
0033     find_package(KF5 ${KF5_MIN_VERSION} OPTIONAL_COMPONENTS NetworkManagerQt)
0034 endif()
0035 
0036 set(CMAKE_CXX_STANDARD 17)
0037 set(CMAKE_CXX_STANDARD_REQUIRED ON)
0038 
0039 add_subdirectory(src)
0040 
0041 if (ANDROID)
0042     configure_file(${CMAKE_CURRENT_SOURCE_DIR}/android/version.gradle.in ${CMAKE_BINARY_DIR}/version.gradle)
0043 endif()
0044 
0045 if (BUILD_TESTING)
0046     add_subdirectory(tests)
0047 endif()
0048 
0049 install(PROGRAMS org.kde.qrca.desktop DESTINATION ${KDE_INSTALL_APPDIR})
0050 install(FILES org.kde.qrca.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0051 install(FILES org.kde.qrca.svg DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/hicolor/scalable/apps/)
0052 
0053 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
0054 
0055 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
0056 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})