Warning, /plasma/kpipewire/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.16)
0002 project(KPipewire)
0003 set(PROJECT_VERSION "5.27.10")
0004 set(PROJECT_VERSION_MAJOR 5)
0005 
0006 set(KF5_MIN_VERSION "5.102.0")
0007 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0008 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
0009 include(KDEInstallDirs)
0010 include(KDECompilerSettings NO_POLICY_SCOPE)
0011 include(KDECMakeSettings)
0012 include(KDEClangFormat)
0013 include(KDEGitCommitHooks)
0014 include(ECMQtDeclareLoggingCategory)
0015 
0016 find_package(Qt${QT_MAJOR_VERSION} REQUIRED COMPONENTS DBus Quick WaylandClient)
0017 find_package(KF5 REQUIRED COMPONENTS Wayland I18n CoreAddons)
0018 find_package(Wayland REQUIRED COMPONENTS Client)
0019 
0020 find_package(PlasmaWaylandProtocols REQUIRED)
0021 if (QT_MAJOR_VERSION EQUAL "5")
0022     find_package(QtWaylandScanner REQUIRED)
0023 else()
0024     find_package(EGL REQUIRED)
0025 endif()
0026 
0027 pkg_check_modules(PipeWire IMPORTED_TARGET libpipewire-0.3 REQUIRED)
0028 
0029 # ffmpeg, for recording
0030 pkg_check_modules(AVCodec IMPORTED_TARGET libavcodec)
0031 pkg_check_modules(AVUtil IMPORTED_TARGET libavutil)
0032 pkg_check_modules(AVFormat IMPORTED_TARGET libavformat)
0033 pkg_check_modules(GBM IMPORTED_TARGET gbm)
0034 pkg_check_modules(SWScale IMPORTED_TARGET libswscale)
0035 find_package(epoxy 1.3 REQUIRED)
0036 find_package(Libdrm 2.4.62)
0037 
0038 set(CMAKE_CXX_STANDARD 17)
0039 set(CMAKE_CXX_STANDARD_REQUIRED ON)
0040 
0041 # add clang-format target for all our real source files
0042 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
0043 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
0044 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
0045 
0046 # Prevent EGL headers from including platform headers, in particular Xlib.h.
0047 add_definitions(-DMESA_EGL_NO_X11_HEADERS)
0048 add_definitions(-DEGL_NO_X11)
0049 add_definitions(-DEGL_NO_PLATFORM_SPECIFIC_TYPES)
0050 
0051 add_subdirectory(src)
0052 if (BUILD_TESTING)
0053    add_subdirectory(tests)
0054 endif()
0055 
0056 ki18n_install(po)