kdeconnect-kde/plugins/CMakeLists.txt
Albert Vaca Cintora 495e3019e4 Reduce number of optional dependencies
Change some optional dependencies from being optional to being mandatory
or being mandatory but behind on-by-default cmake flags. Eg: instead of
only compiling Wayland support if we find the appropriate libraries, we
always require the libraries unless the user specifies WITH_WAYLAND=OFF.

Optional libraries are hard to discover by packagers (since they don't
see an error once we add them) and create lots of possible build flavors
with a different features that can confuse users.
2023-07-19 17:08:03 +00:00

70 lines
1.7 KiB
CMake

add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-plugins\")
add_subdirectory(ping)
add_subdirectory(connectivity-report)
add_subdirectory(remotecommands)
add_subdirectory(remotecontrol)
add_subdirectory(remotesystemvolume)
add_subdirectory(clipboard)
add_subdirectory(runcommand)
if(NOT WIN32)
# https://bugs.kde.org/show_bug.cgi?id=444612
add_subdirectory(battery)
endif()
if(NOT WIN32 AND NOT APPLE)
add_subdirectory(bigscreen)
endif()
add_subdirectory(presenter)
if((WIN32 AND MSVC AND (${CMAKE_SYSTEM_VERSION} VERSION_GREATER_EQUAL 10.0.17763.0)) OR NOT WIN32)
add_subdirectory(mpriscontrol)
endif()
add_subdirectory(photo)
add_subdirectory(mprisremote)
add_subdirectory(lockdevice)
add_subdirectory(contacts)
add_subdirectory(share)
add_subdirectory(remotekeyboard)
add_subdirectory(notifications)
add_subdirectory(findmyphone)
add_subdirectory(telephony)
add_subdirectory(mousepad)
add_subdirectory(sms)
add_subdirectory(screensaver-inhibit)
add_subdirectory(virtualmonitor)
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
find_package(KF5ModemManagerQt ${KF5_MIN_VERSION})
if (TARGET KF5::ModemManagerQt)
add_subdirectory(mmtelephony)
endif()
endif()
if(NOT WIN32 AND NOT APPLE)
add_subdirectory(sendnotifications)
endif()
if(NOT APPLE)
add_subdirectory(sftp)
endif()
if(WITH_PULSEAUDIO OR WIN32)
add_subdirectory(pausemusic)
endif()
if(WITH_PULSEAUDIO OR WIN32)
add_subdirectory(findthisdevice)
endif()
if (WITH_PULSEAUDIO OR WIN32 OR APPLE)
add_subdirectory(systemvolume)
endif()
# If we split notifications per plugin, in several notifyrc files, they won't
# appear in the same group in the Notifications KCM
install(FILES kdeconnect.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFYRCDIR})