2009-04-25 16:06:25 +02:00
|
|
|
include_directories(${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../includes ${CMAKE_CURRENT_SOURCE_DIR}/../)
|
2009-02-07 17:30:58 +01:00
|
|
|
|
|
|
|
MACRO(SODEP_UNIT_TESTS)
|
|
|
|
FOREACH(_testname ${ARGN})
|
2010-10-05 16:47:38 +02:00
|
|
|
kde4_add_unit_test(${_testname} TESTNAME plasma-sodep-${_testname} NOGUI ${_testname}.cpp)
|
2009-04-25 14:26:01 +02:00
|
|
|
target_link_libraries(${_testname} ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY} ${QT_QTNETWORK_LIBRARY} QtJolie)
|
2009-02-07 17:30:58 +01:00
|
|
|
add_definitions(-DDATA_DIR="\\"${CMAKE_CURRENT_SOURCE_DIR}\\"")
|
|
|
|
ENDFOREACH(_testname)
|
|
|
|
ENDMACRO(SODEP_UNIT_TESTS)
|
|
|
|
|
|
|
|
MACRO(SODEP_EXECUTABLE_TESTS)
|
|
|
|
FOREACH(_testname ${ARGN})
|
|
|
|
kde4_add_executable(${_testname} NOGUI TEST ${_testname}.cpp)
|
2009-04-25 14:26:01 +02:00
|
|
|
target_link_libraries(${_testname} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTNETWORK_LIBRARY} QtJolie)
|
2009-02-07 17:30:58 +01:00
|
|
|
add_definitions(-DDATA_DIR="\\"${CMAKE_CURRENT_SOURCE_DIR}\\"")
|
|
|
|
ENDFOREACH(_testname)
|
|
|
|
ENDMACRO(SODEP_EXECUTABLE_TESTS)
|
|
|
|
|
|
|
|
SODEP_UNIT_TESTS(
|
2009-04-25 15:50:35 +02:00
|
|
|
testvalue
|
|
|
|
testfault
|
|
|
|
testmessage
|
|
|
|
testmetaservice
|
2009-02-07 17:30:58 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
SODEP_EXECUTABLE_TESTS(
|
2009-04-25 15:50:35 +02:00
|
|
|
testprinter
|
2009-06-06 00:51:08 +02:00
|
|
|
calculatorservice
|
2009-06-29 19:00:33 +02:00
|
|
|
trivialyahooclient
|
2009-02-07 17:30:58 +01:00
|
|
|
)
|
2009-07-01 22:36:01 +02:00
|
|
|
|
|
|
|
set(visiondriver_SRCS
|
|
|
|
visiondriver.cpp
|
|
|
|
)
|
|
|
|
kde4_add_ui_files(visiondriver_SRCS visiondriverwidget.ui)
|
|
|
|
|
|
|
|
kde4_add_executable(visiondriver ${visiondriver_SRCS})
|
|
|
|
target_link_libraries(visiondriver ${KDE4_KDEUI_LIBS} ${QT_QTNETWORK_LIBRARY} QtJolie)
|
|
|
|
|