kdeconnect-kde/kded/autotests/CMakeLists.txt
Àlex Fiestas 71d339adea Added autotest for SocketLineReader
I want to re-write this class, so before I can do that I must
make sure that I don't break existing behavior.

The test basically sends  5 lines and then checks that those 5 lines
have been correctly identified.
2014-03-07 00:37:48 +01:00

5 lines
No EOL
446 B
CMake

set(_testname testsocketlinereader)
qt4_generate_moc(${_testname}.cpp ${CMAKE_CURRENT_BINARY_DIR}/${_testname}.moc)
include_directories(${QT_INCLUDES} ${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})
kde4_add_unit_test(${_testname} ${_testname}.cpp ${_testname}.moc ../backends/lan/socketlinereader.cpp ../kdebugnamespace.cpp)
target_link_libraries(${_testname} ${KDE4_KDECORE_LIBS} ${QT_QTTEST_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY})