2013-09-01 21:13:03 +01:00
|
|
|
include_directories(
|
|
|
|
${QJSON_INCLUDE_DIR}
|
|
|
|
${QCA2_INCLUDE_DIR}
|
2013-10-01 12:55:24 +01:00
|
|
|
${KDE4_INCLUDES}
|
2014-06-14 13:31:31 +01:00
|
|
|
${KDEConnectCore_BINARY_DIR}
|
2014-06-14 14:22:40 +01:00
|
|
|
${CMAKE_SOURCE_DIR}
|
2013-09-01 21:13:03 +01:00
|
|
|
)
|
|
|
|
|
2013-09-02 02:23:34 +01:00
|
|
|
set(kdeconnect_libraries
|
2013-09-01 21:13:03 +01:00
|
|
|
${KDE4_KDECORE_LIBS}
|
|
|
|
${KDE4_KDEUI_LIBS}
|
2013-10-01 12:55:24 +01:00
|
|
|
${KDE4_KIO_LIBS}
|
|
|
|
${QT_QTNETWORK_LIBRARY}
|
2013-09-01 21:13:03 +01:00
|
|
|
${QJSON_LIBRARIES}
|
|
|
|
${QCA2_LIBRARIES}
|
|
|
|
${QT_QTTEST_LIBRARY}
|
2014-06-14 13:31:31 +01:00
|
|
|
kdeconnectcore
|
2013-09-01 21:13:03 +01:00
|
|
|
)
|
2013-09-02 02:23:34 +01:00
|
|
|
|
|
|
|
#NetworkPackage
|
2014-06-14 13:31:31 +01:00
|
|
|
kde4_add_unit_test(kdeconnect_tests networkpackagetests.cpp)
|
2013-09-02 02:23:34 +01:00
|
|
|
target_link_libraries(kdeconnect_tests ${kdeconnect_libraries})
|
|
|
|
|
2014-04-12 22:04:35 +01:00
|
|
|
#Socketlinereader
|
2014-06-14 14:22:40 +01:00
|
|
|
kde4_add_unit_test(testsocketlinereader testsocketlinereader.cpp ../core/backends/lan/socketlinereader.cpp)
|
2014-06-14 13:31:31 +01:00
|
|
|
target_link_libraries(testsocketlinereader ${kdeconnect_libraries})
|