495e3019e4
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.
14 lines
367 B
CMake
14 lines
367 B
CMake
find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED COMPONENTS Test)
|
|
|
|
set(kdeconnect_libraries
|
|
kdeconnectcore
|
|
kdeconnectversion
|
|
KF5::I18n
|
|
KF5::KIOWidgets
|
|
Qt::DBus
|
|
Qt::Network
|
|
Qt::Test
|
|
)
|
|
|
|
ecm_add_test(pluginloadtest.cpp LINK_LIBRARIES ${kdeconnect_libraries})
|
|
ecm_add_test(sendfiletest.cpp LINK_LIBRARIES ${kdeconnect_libraries})
|