[KMediaSession] Put compilation of example player behind switch

This commit is contained in:
Bart De Vries 2023-01-23 20:55:57 +01:00
parent d869358ff5
commit 48c1cffd4e
2 changed files with 7 additions and 2 deletions

View File

@ -40,7 +40,8 @@ ecm_setup_version(${PROJECT_VERSION}
VERSION_HEADER ${CMAKE_CURRENT_BINARY_DIR}/kasts-version.h
)
ecm_set_disabled_deprecation_versions(QT 5.15.2
ecm_set_disabled_deprecation_versions(
QT 5.15.2
KF 5.102.0
)

View File

@ -3,6 +3,8 @@
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${ECM_MODULE_PATH})
option(BUILD_EXAMPLE_PLAYER "Build and install example audio backend player" OFF)
find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Core Qml Multimedia)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS CoreAddons I18n)
@ -148,4 +150,6 @@ endif()
install(TARGETS KMediaSession ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
add_subdirectory(example-app)
if (BUILD_EXAMPLE_PLAYER)
add_subdirectory(example-app)
endif()