add_library(KF6PulseAudioQt SHARED) target_sources(KF6PulseAudioQt PRIVATE card.cpp cardport.cpp client.cpp context.cpp device.cpp maps.cpp operation.cpp port.cpp profile.cpp models.cpp pulseobject.cpp sink.cpp sinkinput.cpp source.cpp sourceoutput.cpp stream.cpp volumeobject.cpp server.cpp streamrestore.cpp module.cpp indexedpulseobject.cpp ) ecm_qt_declare_logging_category(KF6PulseAudioQt HEADER debug.h IDENTIFIER PULSEAUDIOQT CATEGORY_NAME org.kde.pulseaudio ) ecm_qt_declare_logging_category(KF6PulseAudioQt HEADER debug_object.h IDENTIFIER PAOBJECT CATEGORY_NAME org.kde.pulseaudio.object ) target_link_libraries(KF6PulseAudioQt PUBLIC Qt6::Core PRIVATE Qt6::Gui Qt6::DBus PkgConfig::LIBPULSE PkgConfig::LIBPULSE_MAINLOOP ) target_include_directories(KF6PulseAudioQt INTERFACE "$" ) set_target_properties(KF6PulseAudioQt PROPERTIES VERSION ${PULSEAUDIOQT_VERSION} SOVERSION ${PULSEAUDIOQT_SOVERSION} EXPORT_NAME PulseAudioQt ) ecm_generate_headers(PulseAudioQt_HEADERS HEADER_NAMES Card CardPort Client Context Device IndexedPulseObject Module Port Profile Models PulseObject Server Sink SinkInput Source SourceOutput Stream StreamRestore VolumeObject REQUIRED_HEADERS PulseAudioQt_HEADERS ) ecm_generate_export_header(KF6PulseAudioQt BASE_NAME PulseAudioQt GROUP_BASE_NAME KF VERSION ${PROJECT_VERSION} ) ecm_generate_pkgconfig_file(BASE_NAME KF6PulseAudioQt INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF5}/KF6PulseAudioQt/ DEPS "Qt6Core" INSTALL) install(TARGETS KF6PulseAudioQt EXPORT PulseAudioQtTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) install(FILES ${PulseAudioQt_HEADERS} ${CMAKE_CURRENT_BINARY_DIR}/pulseaudioqt_export.h DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/KF6PulseAudioQt/PulseAudioQt COMPONENT Devel ) if(BUILD_QCH) ecm_add_qch( KF6PulseAudioQt_QCH NAME PulseAudioQt BASE_NAME KF6PulseAudioQt VERSION ${PULSEAUDIOQT_VERSION} ORG_DOMAIN org.kde SOURCES ${PulseAudioQt_HEADERS} LINK_QCHS Qt6Gui_QCH BLANK_MACROS PulseAudioQt_EXPORT PulseAudioQt_DEPRECATED PulseAudioQt_DEPRECATED_EXPORT TAGFILE_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR} QCH_INSTALL_DESTINATION ${KDE_INSTALL_QTQCHDIR} COMPONENT Devel ) endif()