Changeset View
Changeset View
Standalone View
Standalone View
tests/CMakeLists.txt
1 | find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Test) | 1 | find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Test) | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | include_directories( | 3 | include_directories( | ||
4 | ${KDEConnectCore_BINARY_DIR} | 4 | ${KDEConnectCore_BINARY_DIR} | ||
5 | ${CMAKE_SOURCE_DIR} | 5 | ${CMAKE_SOURCE_DIR} | ||
6 | ${CMAKE_BINARY_DIR}/plugins/sendnotifications/ | 6 | ${CMAKE_BINARY_DIR}/plugins/sendnotifications/ | ||
7 | ) | 7 | ) | ||
8 | 8 | | |||
9 | set(kdeconnect_libraries | 9 | set(kdeconnect_libraries | ||
10 | kdeconnectcore | 10 | kdeconnectcore | ||
11 | KF5::I18n | 11 | KF5::I18n | ||
12 | KF5::KIOWidgets | 12 | KF5::KIOWidgets | ||
13 | Qt5::DBus | 13 | Qt5::DBus | ||
14 | Qt5::Network | 14 | Qt5::Network | ||
15 | Qt5::Test | 15 | Qt5::Test | ||
16 | qca-qt5 | | |||
17 | ) | 16 | ) | ||
18 | 17 | | |||
19 | ecm_add_test(pluginloadtest.cpp LINK_LIBRARIES ${kdeconnect_libraries}) | 18 | ecm_add_test(pluginloadtest.cpp LINK_LIBRARIES ${kdeconnect_libraries}) | ||
20 | ecm_add_test(sendfiletest.cpp LINK_LIBRARIES ${kdeconnect_libraries}) | 19 | ecm_add_test(sendfiletest.cpp LINK_LIBRARIES ${kdeconnect_libraries}) | ||
21 | ecm_add_test(networkpackettests.cpp LINK_LIBRARIES ${kdeconnect_libraries}) | 20 | ecm_add_test(networkpackettests.cpp LINK_LIBRARIES ${kdeconnect_libraries}) | ||
22 | ecm_add_test(testsocketlinereader.cpp TEST_NAME testsocketlinereader LINK_LIBRARIES ${kdeconnect_libraries}) | 21 | ecm_add_test(testsocketlinereader.cpp TEST_NAME testsocketlinereader LINK_LIBRARIES ${kdeconnect_libraries}) | ||
23 | ecm_add_test(testsslsocketlinereader.cpp TEST_NAME testsslsocketlinereader LINK_LIBRARIES ${kdeconnect_libraries}) | 22 | ecm_add_test(testsslsocketlinereader.cpp TEST_NAME testsslsocketlinereader LINK_LIBRARIES ${kdeconnect_libraries}) | ||
24 | ecm_add_test(kdeconnectconfigtest.cpp TEST_NAME kdeconnectconfigtest LINK_LIBRARIES ${kdeconnect_libraries}) | 23 | ecm_add_test(kdeconnectconfigtest.cpp TEST_NAME kdeconnectconfigtest LINK_LIBRARIES ${kdeconnect_libraries}) | ||
25 | ecm_add_test(lanlinkprovidertest.cpp TEST_NAME lanlinkprovidertest LINK_LIBRARIES ${kdeconnect_libraries}) | 24 | ecm_add_test(lanlinkprovidertest.cpp TEST_NAME lanlinkprovidertest LINK_LIBRARIES ${kdeconnect_libraries}) | ||
26 | ecm_add_test(devicetest.cpp TEST_NAME devicetest LINK_LIBRARIES ${kdeconnect_libraries}) | 25 | ecm_add_test(devicetest.cpp TEST_NAME devicetest LINK_LIBRARIES ${kdeconnect_libraries}) | ||
27 | ecm_add_test(testnotificationlistener.cpp | 26 | ecm_add_test(testnotificationlistener.cpp | ||
28 | ../plugins/sendnotifications/sendnotificationsplugin.cpp | 27 | ../plugins/sendnotifications/sendnotificationsplugin.cpp | ||
29 | ../plugins/sendnotifications/notificationslistener.cpp | 28 | ../plugins/sendnotifications/notificationslistener.cpp | ||
30 | ../plugins/sendnotifications/notifyingapplication.cpp | 29 | ../plugins/sendnotifications/notifyingapplication.cpp | ||
31 | TEST_NAME testnotificationlistener | 30 | TEST_NAME testnotificationlistener | ||
32 | LINK_LIBRARIES ${kdeconnect_libraries} Qt5::DBus KF5::Notifications KF5::IconThemes) | 31 | LINK_LIBRARIES ${kdeconnect_libraries} Qt5::DBus KF5::Notifications KF5::IconThemes) |