Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 15 Lines | |||||
16 | 16 | | |||
17 | include(KDEInstallDirs) | 17 | include(KDEInstallDirs) | ||
18 | include(KDECMakeSettings) | 18 | include(KDECMakeSettings) | ||
19 | include(KDECompilerSettings NO_POLICY_SCOPE) | 19 | include(KDECompilerSettings NO_POLICY_SCOPE) | ||
20 | include(ECMInstallIcons) | 20 | include(ECMInstallIcons) | ||
21 | include(ECMAddAppIcon) | 21 | include(ECMAddAppIcon) | ||
22 | include(ECMSetupVersion) | 22 | include(ECMSetupVersion) | ||
23 | include(FeatureSummary) | 23 | include(FeatureSummary) | ||
24 | include(CheckIncludeFile) | ||||
25 | | ||||
26 | check_include_file("linux/input.h" HAVE_LINUX_INPUT_H) | ||||
24 | 27 | | |||
25 | find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core DBus Widgets X11Extras) | 28 | find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core DBus Widgets X11Extras) | ||
26 | 29 | | |||
27 | find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS | 30 | find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS | ||
28 | I18n | 31 | I18n | ||
29 | Completion | 32 | Completion | ||
30 | Config | 33 | Config | ||
31 | CoreAddons | 34 | CoreAddons | ||
Show All 36 Lines | 62 | add_definitions( | |||
68 | -DQT_NO_SIGNALS_SLOTS_KEYWORDS | 71 | -DQT_NO_SIGNALS_SLOTS_KEYWORDS | ||
69 | -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT | 72 | -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT | ||
70 | ) | 73 | ) | ||
71 | 74 | | |||
72 | include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ) | 75 | include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ) | ||
73 | 76 | | |||
74 | find_package(LibVNCServer REQUIRED) | 77 | find_package(LibVNCServer REQUIRED) | ||
75 | 78 | | |||
79 | find_package(PipeWire) | ||||
80 | set_package_properties(PipeWire PROPERTIES | ||||
81 | TYPE OPTIONAL | ||||
82 | PURPOSE "Required for pipewire screencast plugin" | ||||
83 | ) | ||||
84 | | ||||
76 | ecm_setup_version(PROJECT | 85 | ecm_setup_version(PROJECT | ||
77 | VARIABLE_PREFIX KRFB | 86 | VARIABLE_PREFIX KRFB | ||
78 | VERSION_HEADER "krfb_version.h") | 87 | VERSION_HEADER "krfb_version.h") | ||
79 | 88 | | |||
80 | include_directories ("${CMAKE_CURRENT_BINARY_DIR}/krfb" | 89 | include_directories ("${CMAKE_CURRENT_BINARY_DIR}/krfb" | ||
81 | "${CMAKE_CURRENT_SOURCE_DIR}/krfb" | 90 | "${CMAKE_CURRENT_SOURCE_DIR}/krfb" | ||
82 | "${CMAKE_CURRENT_SOURCE_DIR}/krfb/ui" | 91 | "${CMAKE_CURRENT_SOURCE_DIR}/krfb/ui" | ||
83 | ) | 92 | ) | ||
84 | 93 | | |||
85 | if(Q_WS_X11) | 94 | if(Q_WS_X11) | ||
86 | if(NOT X11_XTest_FOUND) | 95 | if(NOT X11_XTest_FOUND) | ||
87 | message(FATAL_ERROR "krfb requires the libXtst (https://xorg.freedesktop.org) to be built") | 96 | message(FATAL_ERROR "krfb requires the libXtst (https://xorg.freedesktop.org) to be built") | ||
88 | endif(NOT X11_XTest_FOUND) | 97 | endif(NOT X11_XTest_FOUND) | ||
89 | endif(Q_WS_X11) | 98 | endif(Q_WS_X11) | ||
90 | 99 | | |||
100 | add_subdirectory(events) | ||||
91 | add_subdirectory(krfb) | 101 | add_subdirectory(krfb) | ||
92 | add_subdirectory(framebuffers) | 102 | add_subdirectory(framebuffers) | ||
93 | add_subdirectory(doc) | 103 | add_subdirectory(doc) | ||
94 | add_subdirectory(icons) | 104 | add_subdirectory(icons) | ||
95 | 105 | | |||
96 | feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) | 106 | feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) |