2008-11-04 00:08:39 +01:00
|
|
|
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
2011-11-23 11:32:18 +01:00
|
|
|
include_directories ( ${karchive_SOURCE_DIR}/src
|
2012-06-04 18:20:53 +02:00
|
|
|
${karchive_BINARY_DIR}/src
|
2011-08-11 01:16:31 +02:00
|
|
|
)
|
|
|
|
|
2008-11-04 00:08:39 +01:00
|
|
|
MACRO(PLASMA_UNIT_TESTS)
|
|
|
|
FOREACH(_testname ${ARGN})
|
2010-10-05 16:07:34 +02:00
|
|
|
kde4_add_unit_test(${_testname} TESTNAME plasma-${_testname} ${_testname}.cpp)
|
2011-03-25 16:33:11 +01:00
|
|
|
target_link_libraries(${_testname} ${QT_QTTEST_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY}
|
2013-02-27 21:45:35 +01:00
|
|
|
${KDE4_KIO_LIBS} ${KDE4_KDEUI_LIBS} plasma ${KArchive_LIBRARIES} )
|
2011-03-25 16:33:11 +01:00
|
|
|
if(QT_QTOPENGL_FOUND)
|
|
|
|
target_link_libraries(${_testname} ${QT_QTOPENGL_LIBRARY})
|
|
|
|
endif(QT_QTOPENGL_FOUND)
|
2008-11-04 00:08:39 +01:00
|
|
|
ENDFOREACH(_testname)
|
|
|
|
ENDMACRO(PLASMA_UNIT_TESTS)
|
|
|
|
|
|
|
|
PLASMA_UNIT_TESTS(
|
2011-05-26 15:13:15 +02:00
|
|
|
configloadertest
|
2008-11-04 00:08:39 +01:00
|
|
|
packagestructuretest
|
2013-02-15 16:31:26 +01:00
|
|
|
# plasmoidpackagetest
|
2010-02-01 00:39:32 +01:00
|
|
|
runnercontexttest
|
2008-11-04 00:08:39 +01:00
|
|
|
)
|
2011-04-28 15:19:42 +02:00
|
|
|
|
2011-04-28 18:40:02 +02:00
|
|
|
kde4_add_unit_test(storagetest TESTNAME plasma-storage storagetest.cpp ../private/storage.cpp ../private/storagethread.cpp)
|
2013-02-27 21:45:35 +01:00
|
|
|
target_link_libraries(storagetest ${QT_QTTEST_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY} ${QT_QTSQL_LIBRARY} ${KDE4_KIO_LIBS} plasma ${KCoreAddons_LIBRARIES} )
|
2011-04-28 15:19:42 +02:00
|
|
|
if(QT_QTOPENGL_FOUND)
|
|
|
|
target_link_libraries(storagetest ${QT_QTOPENGL_LIBRARY})
|
|
|
|
endif(QT_QTOPENGL_FOUND)
|
|
|
|
|
2009-10-01 08:50:37 +02:00
|
|
|
if(QCA2_FOUND)
|
2013-02-15 16:31:26 +01:00
|
|
|
# target_link_libraries(plasmoidpackagetest ${QCA2_LIBRARIES})
|
2009-10-01 08:50:37 +02:00
|
|
|
endif(QCA2_FOUND)
|
2008-11-04 00:08:39 +01:00
|
|
|
|