Warning, /network/kdeconnect-kde/plugins/mousepad/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 kdeconnect_add_plugin(kdeconnect_mousepad SOURCES mousepadplugin.cpp abstractremoteinput.cpp) 0002 0003 if(UNIX AND NOT APPLE) 0004 target_sources(kdeconnect_mousepad PUBLIC waylandremoteinput.cpp ${SRCS}) 0005 target_sources(kdeconnect_mousepad PRIVATE ${wayland_SRCS}) 0006 target_link_libraries(kdeconnect_mousepad Wayland::Client Qt::WaylandClient PkgConfig::XkbCommon) 0007 0008 if (WITH_X11) 0009 find_package(LibFakeKey REQUIRED) 0010 set_package_properties(LibFakeKey PROPERTIES DESCRIPTION "fake key events" 0011 URL "https://github.com/dtapuska/fakekey" 0012 TYPE REQUIRED 0013 PURPOSE "Needed for the remote mouse input plugin" 0014 ) 0015 0016 find_package(XTest REQUIRED) 0017 find_package(X11 REQUIRED) 0018 target_include_directories(kdeconnect_mousepad PRIVATE ${XTEST_INCLUDE_DIRS} ${X11_INCLUDE_DIR} ${LibFakeKey_INCLUDE_DIRS}) 0019 endif() 0020 endif() 0021 0022 configure_file(config-mousepad.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-mousepad.h) 0023 0024 target_link_libraries(kdeconnect_mousepad kdeconnectcore kdeconnectinterfaces Qt::Gui KF6::I18n) 0025 0026 if (WIN32) 0027 target_sources(kdeconnect_mousepad PUBLIC windowsremoteinput.cpp) 0028 endif() 0029 0030 if(WITH_X11) 0031 target_sources(kdeconnect_mousepad PUBLIC x11remoteinput.cpp) 0032 target_link_libraries(kdeconnect_mousepad Qt6::GuiPrivate ${X11_LIBRARIES} ${XTEST_LIBRARIES} ${LibFakeKey_LIBRARIES}) 0033 endif() 0034 0035 if (APPLE) 0036 target_sources(kdeconnect_mousepad PUBLIC macosremoteinput.mm) 0037 target_link_libraries(kdeconnect_mousepad "-framework CoreGraphics" "-framework ApplicationServices" "-framework Cocoa") 0038 endif()