Warning, /network/krfb/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.16)
0002 
0003 # KDE Application Version, managed by release script
0004 set (RELEASE_SERVICE_VERSION_MAJOR "24")
0005 set (RELEASE_SERVICE_VERSION_MINOR "01")
0006 set (RELEASE_SERVICE_VERSION_MICRO "95")
0007 set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
0008 
0009 project(krfb VERSION ${RELEASE_SERVICE_VERSION})
0010 
0011 set(QT_MIN_VERSION 6.5.0)
0012 set(KF6_MIN_VERSION 5.247.0)
0013 
0014 find_package(ECM ${KF6_MIN_VERSION} NO_MODULE REQUIRED)
0015 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" ${ECM_MODULE_PATH})
0016 
0017 include(KDEInstallDirs)
0018 include(KDECMakeSettings)
0019 include(KDECompilerSettings NO_POLICY_SCOPE)
0020 include(ECMInstallIcons)
0021 include(ECMAddAppIcon)
0022 include(ECMSetupVersion)
0023 include(ECMQtDeclareLoggingCategory)
0024 include(ECMDeprecationSettings)
0025 include(FeatureSummary)
0026 include(CheckIncludeFile)
0027 
0028 check_include_file("linux/input.h" HAVE_LINUX_INPUT_H)
0029 
0030 find_package(Qt6 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core DBus Widgets)
0031 
0032 find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS
0033     I18n
0034     Config
0035     CoreAddons
0036     DBusAddons
0037     DNSSD
0038     DocTools
0039     Notifications
0040     Wallet
0041     WidgetsAddons
0042     WindowSystem
0043     XmlGui
0044     StatusNotifierItem
0045 )
0046 
0047 find_package(X11 REQUIRED)
0048 
0049 find_package(XCB REQUIRED COMPONENTS
0050     XCB
0051     RENDER
0052     SHAPE
0053     XFIXES
0054     DAMAGE
0055     SHM
0056     IMAGE
0057 )
0058 
0059 if(WIN32)
0060     set(CMAKE_REQUIRED_LIBRARIES ${KDEWIN32_LIBRARIES})
0061     set(CMAKE_REQUIRED_INCLUDES  ${KDEWIN32_INCLUDES})
0062 endif(WIN32)
0063 
0064 ecm_set_disabled_deprecation_versions(
0065     QT 5.15.2
0066     KF 5.91
0067 )
0068 
0069 include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} )
0070 
0071 find_package(LibVNCServer REQUIRED)
0072 
0073 
0074 option(DISABLE_PIPEWIRE "Disable PipeWire support." OFF)
0075 if(NOT DISABLE_PIPEWIRE)
0076     find_package(KPipeWire REQUIRED)
0077 endif()
0078 add_feature_info(PipeWire KPipeWire_FOUND "Required for pipewire screencast plugin")
0079 find_package(PlasmaWaylandProtocols 1.5.0)
0080 
0081 if(KPipeWire_FOUND AND PlasmaWaylandProtocols_FOUND)
0082     find_package(KWayland REQUIRED)
0083     find_package(QtWaylandScanner REQUIRED)
0084     find_package(Qt6WaylandClient)
0085     find_package(Wayland REQUIRED COMPONENTS Client)
0086 endif()
0087 
0088 ecm_setup_version(PROJECT
0089                   VARIABLE_PREFIX KRFB
0090                   VERSION_HEADER "krfb_version.h")
0091 
0092 include_directories ("${CMAKE_CURRENT_BINARY_DIR}/krfb"
0093                      "${CMAKE_CURRENT_SOURCE_DIR}/krfb"
0094                      "${CMAKE_CURRENT_SOURCE_DIR}/krfb/ui"
0095 )
0096 
0097 add_subdirectory(events)
0098 add_subdirectory(krfb)
0099 add_subdirectory(framebuffers)
0100 add_subdirectory(doc)
0101 add_subdirectory(icons)
0102 
0103 ki18n_install(po)
0104 kdoctools_install(po)
0105 
0106 ecm_qt_install_logging_categories(
0107     EXPORT KRFB
0108     FILE krfb.categories
0109     DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
0110 )
0111 
0112 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)