Warning, /multimedia/haruna/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 #
0002 # SPDX-FileCopyrightText: 2020 George Florea Bănuș <georgefb899@gmail.com>
0003 #
0004 # SPDX-License-Identifier: GPL-3.0-or-later
0005 #
0006 
0007 cmake_minimum_required(VERSION 3.15)
0008 
0009 cmake_policy(SET CMP0048 NEW)
0010 project(haruna VERSION 0.9.0 LANGUAGES CXX)
0011 
0012 set(CMAKE_INCLUDE_CURRENT_DIR ON)
0013 set(CMAKE_AUTOMOC ON)
0014 set(CMAKE_AUTORCC ON)
0015 set(CMAKE_CXX_STANDARD 17)
0016 set(CMAKE_CXX_STANDARD_REQUIRED ON)
0017 
0018 find_package(ECM 5.66 REQUIRED NO_MODULE)
0019 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
0020 
0021 include(KDEInstallDirs)
0022 include(ECMInstallIcons)
0023 include(ECMAddAppIcon)
0024 include(ECMSetupVersion)
0025 include(KDECMakeSettings)
0026 include(KDECompilerSettings NO_POLICY_SCOPE)
0027 include(FeatureSummary)
0028 
0029 ecm_setup_version(${PROJECT_VERSION}
0030     VARIABLE_PREFIX HARUNA
0031     VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/haruna-version.h"
0032 )
0033 
0034 set(X11_PLATFORMS Linux FreeBSD GNU/kFreeBSD NetBSD OpenBSD)
0035 
0036 find_package(Qt5Core)
0037 set_package_properties(Qt5Core PROPERTIES TYPE REQUIRED)
0038 
0039 find_package(Qt5DBus)
0040 set_package_properties(Qt5DBus PROPERTIES TYPE REQUIRED)
0041 
0042 find_package(Qt5Gui)
0043 set_package_properties(Qt5Gui PROPERTIES TYPE REQUIRED)
0044 
0045 find_package(Qt5Qml)
0046 set_package_properties(Qt5Qml PROPERTIES TYPE REQUIRED)
0047 
0048 find_package(Qt5Quick)
0049 set_package_properties(Qt5Quick PROPERTIES TYPE REQUIRED)
0050 
0051 find_package(Qt5QuickControls2)
0052 set_package_properties(Qt5QuickControls2 PROPERTIES TYPE REQUIRED)
0053 
0054 if (CMAKE_SYSTEM_NAME IN_LIST X11_PLATFORMS)
0055     find_package(Qt5X11Extras)
0056     set_package_properties(Qt5X11Extras PROPERTIES TYPE REQUIRED)
0057 endif ()
0058 
0059 find_package(Libmpv)
0060 set_package_properties(Libmpv PROPERTIES TYPE REQUIRED
0061     URL "https://mpv.io")
0062 
0063 find_package(FFmpeg)
0064 set_package_properties(FFmpeg PROPERTIES TYPE REQUIRED)
0065 
0066 find_package(Breeze)
0067 set_package_properties(Breeze PROPERTIES TYPE RECOMMENDED
0068     URL "https://api.kde.org/frameworks/breeze-icons/html/index.html")
0069 
0070 find_package(KF5Config)
0071 set_package_properties(KF5Config PROPERTIES TYPE REQUIRED
0072     URL "https://api.kde.org/frameworks/kconfig/html/index.html")
0073 
0074 find_package(KF5CoreAddons)
0075 set_package_properties(KF5CoreAddons PROPERTIES TYPE REQUIRED
0076     URL "https://api.kde.org/frameworks/kcoreaddons/html/index.html")
0077 
0078 find_package(KF5DocTools)
0079 set_package_properties(KF5DocTools PROPERTIES
0080     DESCRIPTION "https://api.kde.org/frameworks/kdoctools/html/index.html")
0081 
0082 find_package(KF5FileMetaData)
0083 set_package_properties(KF5FileMetaData PROPERTIES TYPE REQUIRED
0084     URL "https://api.kde.org/frameworks/kfilemetadata/html/index.html")
0085 
0086 find_package(KF5I18n)
0087 set_package_properties(KF5I18n PROPERTIES TYPE REQUIRED
0088     URL "https://api.kde.org/frameworks/ki18n/html/index.html")
0089 
0090 find_package(KF5IconThemes)
0091 set_package_properties(KF5IconThemes PROPERTIES TYPE REQUIRED
0092     URL "https://api.kde.org/frameworks/kiconthemes/html/index.html")
0093 
0094 find_package(KF5KIO)
0095 set_package_properties(KF5KIO PROPERTIES TYPE REQUIRED
0096     URL "https://api.kde.org/frameworks/kio/html/index.html")
0097 
0098 find_package(KF5Kirigami2)
0099 set_package_properties(KF5Kirigami2 PROPERTIES TYPE REQUIRED
0100     URL "https://api.kde.org/frameworks/kirigami/html/index.html")
0101 
0102 find_package(KF5ConfigWidgets)
0103 set_package_properties(KF5ConfigWidgets PROPERTIES TYPE REQUIRED
0104     URL "https://api.kde.org/frameworks/kconfigwidgets/html/index.html")
0105 
0106 find_package(YouTubeDl)
0107 set_package_properties(YouTubeDl PROPERTIES TYPE RUNTIME)
0108 
0109 find_package(Ytdlp)
0110 set_package_properties(Ytdlp PROPERTIES TYPE RUNTIME)
0111 
0112 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
0113 
0114 add_subdirectory(data)
0115 add_subdirectory(src)
0116 add_subdirectory(doc)