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

0001 project(xdg-portal-test-kde)
0002 
0003 cmake_minimum_required(VERSION 3.16)
0004 
0005 set(QT_MIN_VERSION "5.15.2")
0006 set(CMAKE_CXX_STANDARD 17)
0007 set(CMAKE_CXX_STANDARD_REQUIRED ON)
0008 
0009 ################# set KDE specific information #################
0010 
0011 find_package(ECM 1.3.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 
0018 include(ECMPackageConfigHelpers)
0019 include(ECMOptionalAddSubdirectory)
0020 include(FeatureSummary)
0021 
0022 include(FindPkgConfig)
0023 
0024 find_package(GLIB2 REQUIRED)
0025 
0026 pkg_check_modules(GSTREAMER REQUIRED gstreamer-1.0)
0027 
0028 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
0029     Core
0030     DBus
0031     Widgets
0032 )
0033 
0034 find_package(KF5 REQUIRED
0035     I18n
0036     KIO
0037     Notifications
0038     WindowSystem
0039     Wayland
0040 )
0041 
0042 add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_NO_KEYWORDS)
0043 add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
0044 remove_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FROM_BYTEARRAY)
0045 
0046 add_subdirectory(src)
0047 
0048 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)