only link to the QCA2 libs if available

svn path=/trunk/KDE/kdelibs/; revision=1029571
This commit is contained in:
Romain Pokrzywka 2009-09-30 08:53:11 +00:00
parent c134158608
commit b7a93eddae

View File

@ -4,7 +4,10 @@ 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} ${QCA2_LIBRARIES})
${KDE4_KIO_LIBS})
if(QCA2_FOUND)
target_link_libraries(${_testname} ${QCA2_LIBRARIES})
endif(QCA2_FOUND)
ENDFOREACH(_testname)
ENDMACRO(PLASMA_UNIT_TESTS)