Enable sms test only when SMSAPP_ENABLED set to ON

This commit is contained in:
Weixuan Xiao 2019-05-31 20:17:38 +00:00
parent 05826cc650
commit 17e4360c53

View file

@ -40,4 +40,6 @@ ecm_add_test(testnotificationlistener.cpp
../plugins/sendnotifications/notifyingapplication.cpp ../plugins/sendnotifications/notifyingapplication.cpp
TEST_NAME testnotificationlistener TEST_NAME testnotificationlistener
LINK_LIBRARIES ${kdeconnect_libraries} Qt5::DBus KF5::Notifications KF5::IconThemes) 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()