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 "04") 0006 set (RELEASE_SERVICE_VERSION_MICRO "70") 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 CONFIG REQUIRED) 0077 pkg_check_modules(PipeWire IMPORTED_TARGET libpipewire-0.3) 0078 add_feature_info(PipeWire PipeWire_FOUND "Required for pipewire screencast plugin") 0079 endif() 0080 0081 find_package(PlasmaWaylandProtocols 1.5.0) 0082 0083 if(KPipeWire_FOUND AND PipeWire_FOUND AND PlasmaWaylandProtocols_FOUND) 0084 find_package(KWayland REQUIRED) 0085 find_package(QtWaylandScanner REQUIRED) 0086 find_package(Qt6WaylandClient) 0087 find_package(Wayland REQUIRED COMPONENTS Client) 0088 endif() 0089 0090 ecm_setup_version(PROJECT 0091 VARIABLE_PREFIX KRFB 0092 VERSION_HEADER "krfb_version.h") 0093 0094 include_directories ("${CMAKE_CURRENT_BINARY_DIR}/krfb" 0095 "${CMAKE_CURRENT_SOURCE_DIR}/krfb" 0096 "${CMAKE_CURRENT_SOURCE_DIR}/krfb/ui" 0097 ) 0098 0099 add_subdirectory(events) 0100 add_subdirectory(krfb) 0101 add_subdirectory(framebuffers) 0102 add_subdirectory(doc) 0103 add_subdirectory(icons) 0104 0105 ki18n_install(po) 0106 kdoctools_install(po) 0107 0108 ecm_qt_install_logging_categories( 0109 EXPORT KRFB 0110 FILE krfb.categories 0111 DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR} 0112 ) 0113 0114 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)