Warning, /multimedia/kasts/src/kmediasession/example-app/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-License-Identifier: BSD-2-Clause
0002 # SPDX-FileCopyrightText: 2022-2023 Bart De Vries <bart@mogwai.be>
0003 
0004 find_package(Qt6 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Core Qml Gui Multimedia)
0005 find_package(KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS CoreAddons Kirigami I18n)
0006 
0007 if (NOT ANDROID)
0008     find_package(Qt6 ${QT_MIN_VERSION} REQUIRED COMPONENTS DBus Widgets)
0009 endif()
0010 
0011 ###########################################################
0012 
0013 add_executable(kmediasession-example main.cpp)
0014 
0015 qt_policy(SET QTP0001 NEW)
0016 qt_add_qml_module(kmediasession-example URI org.kde.kmediasession-example
0017     QML_FILES
0018         qml/Main.qml
0019 )
0020 
0021 target_link_libraries(kmediasession-example PRIVATE
0022     Qt::Core
0023     Qt::Qml
0024     Qt::Gui
0025     KF6::CoreAddons
0026     KF6::Kirigami
0027     KF6::I18n
0028     KMediaSession
0029 )
0030 
0031 if (NOT ANDROID)
0032     target_link_libraries(kmediasession-example PRIVATE Qt::Widgets)
0033 endif()
0034 
0035 install(TARGETS kmediasession-example ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0036