Warning, /libraries/xdg-portal-test-kde/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.16)
0002 
0003 project(xdg-portal-test-kde)
0004 
0005 set(QT_MIN_VERSION "6.6")
0006 set(CMAKE_CXX_STANDARD 20)
0007 set(CMAKE_CXX_STANDARD_REQUIRED ON)
0008 
0009 ################# set KDE specific information #################
0010 
0011 find_package(ECM 5.240.0 REQUIRED NO_MODULE)
0012 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
0013 
0014 include(KDEInstallDirs)
0015 include(KDECMakeSettings)
0016 include(KDECompilerSettings NO_POLICY_SCOPE)
0017 include(FeatureSummary)
0018 include(FindPkgConfig)
0019 
0020 find_package(GLIB2 REQUIRED)
0021 
0022 pkg_check_modules(GSTREAMER REQUIRED gstreamer-1.0)
0023 
0024 find_package(Wayland 1.15 REQUIRED COMPONENTS Client)
0025 find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
0026     Core
0027     DBus
0028     Widgets
0029     WaylandClient
0030 )
0031 
0032 find_package(KF6 REQUIRED
0033     I18n
0034     KIO
0035     Notifications
0036     WindowSystem
0037 )
0038 
0039 find_package(WaylandProtocols 1.25)
0040 set_package_properties(WaylandProtocols PROPERTIES
0041     TYPE REQUIRED
0042     PURPOSE "Collection of Wayland protocols that add functionality not available in the Wayland core protocol"
0043     URL "https://gitlab.freedesktop.org/wayland/wayland-protocols/"
0044 )
0045 
0046 find_package(QtWaylandScanner REQUIRED)
0047 
0048 find_package(Wayland REQUIRED Client)
0049 
0050 add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_NO_KEYWORDS)
0051 add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
0052 remove_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FROM_BYTEARRAY)
0053 
0054 add_subdirectory(src)
0055 
0056 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)