2008-11-04 00:08:39 +01:00
|
|
|
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
|
|
MACRO(PLASMA_UNIT_TESTS)
|
|
|
|
FOREACH(_testname ${ARGN})
|
|
|
|
kde4_add_unit_test(${_testname} ${_testname}.cpp)
|
|
|
|
target_link_libraries(${_testname} plasma ${QT_QTTEST_LIBRARY}
|
2009-09-30 10:53:11 +02:00
|
|
|
${KDE4_KIO_LIBS})
|
2008-11-04 00:08:39 +01:00
|
|
|
ENDFOREACH(_testname)
|
|
|
|
ENDMACRO(PLASMA_UNIT_TESTS)
|
|
|
|
|
|
|
|
PLASMA_UNIT_TESTS(
|
|
|
|
packagestructuretest
|
|
|
|
packagemetadatatest
|
|
|
|
plasmoidpackagetest
|
2010-02-01 00:39:32 +01:00
|
|
|
runnercontexttest
|
2010-09-13 20:41:26 +02:00
|
|
|
configloadertest
|
2008-11-04 00:08:39 +01:00
|
|
|
)
|
2009-10-01 08:50:37 +02:00
|
|
|
if(QCA2_FOUND)
|
|
|
|
target_link_libraries(plasmoidpackagetest ${QCA2_LIBRARIES})
|
|
|
|
endif(QCA2_FOUND)
|
2008-11-04 00:08:39 +01:00
|
|
|
|
|
|
|
|