Moved unit tests together
This commit is contained in:
parent
f1bd54a508
commit
d7e9a42a7b
4 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,4 @@
|
|||
add_subdirectory(plugins)
|
||||
add_subdirectory(autotests)
|
||||
|
||||
find_package (QJSON 0.8.1 REQUIRED)
|
||||
find_package (QCA2 REQUIRED)
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
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})
|
|
@ -27,3 +27,9 @@ set(kdeconnect_libraries
|
|||
kde4_add_unit_test(kdeconnect_tests ../kded/networkpackage.cpp ../kded/kdebugnamespace.cpp ../kded/filetransferjob.cpp networkpackagetests.cpp)
|
||||
target_link_libraries(kdeconnect_tests ${kdeconnect_libraries})
|
||||
|
||||
#Socketlinereader
|
||||
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 ../kded/backends/lan/socketlinereader.cpp ../kded/kdebugnamespace.cpp)
|
||||
target_link_libraries(${_testname} ${KDE4_KDECORE_LIBS} ${QT_QTTEST_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY})
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
|
||||
*************************************************************************************/
|
||||
|
||||
#include "../backends/lan/socketlinereader.h"
|
||||
#include "../kded/backends/lan/socketlinereader.h"
|
||||
|
||||
#include <QTest>
|
||||
#include <QTcpServer>
|
Loading…
Reference in a new issue