mirror of
https://github.com/KDE/kasts.git
synced 2025-01-31 09:34:55 +01:00
[KMediaSession] Put compilation of example player behind switch
This commit is contained in:
parent
d869358ff5
commit
48c1cffd4e
@ -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
|
||||
)
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user