diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b0453d6aa..9d90d86bc 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -12,4 +12,7 @@ set(kdeconnect_libraries ecm_add_test(pluginloadtest.cpp LINK_LIBRARIES ${kdeconnect_libraries}) ecm_add_test(sendfiletest.cpp LINK_LIBRARIES ${kdeconnect_libraries}) -ecm_add_test(mdnstest.cpp LINK_LIBRARIES ${kdeconnect_libraries}) + +if(MDNS_ENABLED) + ecm_add_test(mdnstest.cpp LINK_LIBRARIES ${kdeconnect_libraries}) +endif()