From 17e4360c53c910f31272f24ab0c9c467042a4f06 Mon Sep 17 00:00:00 2001 From: Weixuan Xiao Date: Fri, 31 May 2019 20:17:38 +0000 Subject: [PATCH] Enable sms test only when SMSAPP_ENABLED set to ON --- tests/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b9cc8dfdb..0a1950558 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -40,4 +40,6 @@ ecm_add_test(testnotificationlistener.cpp ../plugins/sendnotifications/notifyingapplication.cpp TEST_NAME testnotificationlistener LINK_LIBRARIES ${kdeconnect_libraries} Qt5::DBus KF5::Notifications KF5::IconThemes) - ecm_add_test(testconversationlistmodel.cpp LINK_LIBRARIES ${kdeconnect_sms_libraries}) +if(SMSAPP_ENABLED) + ecm_add_test(testconversationlistmodel.cpp LINK_LIBRARIES ${kdeconnect_sms_libraries}) +endif() \ No newline at end of file