plasma-framework/tests/CMakeLists.txt
Martin Blumenstingl ce1b4c7876 Add an unit test for Plasma::ConfigLoader.
REVIEWBOARD: http://reviewboard.kde.org/r/5329/

svn path=/trunk/KDE/kdelibs/; revision=1174971
2010-09-13 18:41:26 +00:00

23 lines
607 B
CMake

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}
${KDE4_KIO_LIBS})
ENDFOREACH(_testname)
ENDMACRO(PLASMA_UNIT_TESTS)
PLASMA_UNIT_TESTS(
packagestructuretest
packagemetadatatest
plasmoidpackagetest
runnercontexttest
configloadertest
)
if(QCA2_FOUND)
target_link_libraries(plasmoidpackagetest ${QCA2_LIBRARIES})
endif(QCA2_FOUND)