kdelibs/kio/tests/CMakeLists.txt
Ivailo Monev b90f90905b kio: move most of the KRun bits to KLauncher
two things doing the same thing - one has to go away. also KRun does not
fork and the launched service/application lifetime was bound to the
process launching it, that is not the case with klauncher - it is bound
to the session (in the usual case)

a few things on the TODO list but mostly for services/applications
lacking features

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-12 03:21:17 +03:00

37 lines
941 B
CMake

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
# for <kio/global.h>
include_directories(${KDE4_KIO_INCLUDES})
add_definitions(
-DTEST_DATA="${CMAKE_SOURCE_DIR}/solid/solid/backends/fakehw/fakecomputer.xml"
)
MACRO(KIO_UNIT_TESTS)
FOREACH(_testname ${ARGN})
kde4_add_test(kio-${_testname} ${_testname}.cpp)
target_link_libraries(kio-${_testname} ${QT_QTTEST_LIBRARY} ${QT_QTXML_LIBRARY} kio)
ENDFOREACH(_testname)
ENDMACRO(KIO_UNIT_TESTS)
# jobtest seems to trigger a ctest problem; jobtest finishes and ctest waits for ever
KIO_UNIT_TESTS(
kprotocolinfotest
jobtest
jobguitest
kurlcompletiontest
kfileitemtest
kbookmarktest
kacltest
kdirmodeltest
kdirlistertest
fileundomanagertest
clipboardupdatertest
globaltest
udsentrytest
kfilemetainfotest
kfileplacesmodeltest
kurlnavigatortest
kdiroperatortest
knewfilemenutest
)