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

0001 #
0002 # SPDX-FileCopyrightText: 2020 Jonah BrĂ¼chert <jbb@kaidan.im>
0003 # SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
0004 #
0005 # SPDX-License-Identifier: GPL-3.0-or-later
0006 #
0007 cmake_minimum_required(VERSION 3.16)
0008 
0009 project(krecorder)
0010 set(PROJECT_VERSION "22.06")
0011 
0012 set(QT_MIN_VERSION "5.15.0")
0013 set(KF_MIN_VERSION "5.89.0")
0014 
0015 set(CMAKE_CXX_STANDARD 17)
0016 set(CMAKE_CXX_STANDARD_REQUIRED ON)
0017 
0018 include(FeatureSummary)
0019 
0020 find_package(ECM ${KF_MIN_VERSION} REQUIRED)
0021 
0022 # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
0023 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0024 
0025 # only enable QML debugging on debug builds
0026 set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DQT_QML_DEBUG ")
0027 
0028 include(FeatureSummary)
0029 include(KDEInstallDirs)
0030 include(KDECMakeSettings)
0031 include(KDECompilerSettings NO_POLICY_SCOPE)
0032 include(KDEClangFormat)
0033 include(KDEGitCommitHooks)
0034 include(ECMSetupVersion)
0035 include(ECMGenerateHeaders)
0036 include(ECMPoQmTools)
0037 
0038 # setup version
0039 ecm_setup_version(${PROJECT_VERSION}
0040     VARIABLE_PREFIX KRECORDER
0041     VERSION_HEADER ${CMAKE_CURRENT_BINARY_DIR}/version.h
0042 )
0043 
0044 find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS 
0045     Core 
0046     Gui 
0047     Widgets 
0048     Qml 
0049     QuickControls2 
0050     Multimedia 
0051     Svg
0052     QuickCompiler
0053 )
0054 
0055 find_package(KF5 ${KF_MIN_VERSION} REQUIRED COMPONENTS 
0056     Kirigami2 
0057     I18n 
0058     Config 
0059     CoreAddons
0060 )
0061 
0062 add_subdirectory(src)
0063 
0064 ki18n_install(po)
0065 
0066 if (ANDROID)
0067     configure_file(${CMAKE_CURRENT_SOURCE_DIR}/android/version.gradle.in ${CMAKE_BINARY_DIR}/version.gradle)
0068 endif()
0069 
0070 install(PROGRAMS org.kde.krecorder.desktop DESTINATION ${KDE_INSTALL_APPDIR})
0071 install(FILES org.kde.krecorder.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0072 install(FILES krecorder.svg DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/hicolor/scalable/apps)
0073 
0074 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)