plasma-framework/tests/CMakeLists.txt
Andreas Pakulat c68d018cba There's no reason to link all tests against QCA2 if only one of them needs the
lib.

svn path=/trunk/KDE/kdelibs/; revision=1029932
2009-10-01 06:50:37 +00:00

21 lines
564 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
)
if(QCA2_FOUND)
target_link_libraries(plasmoidpackagetest ${QCA2_LIBRARIES})
endif(QCA2_FOUND)