1 set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
2 add_subdirectory(guitest)
4 MACRO(PHONON_UNIT_TESTS)
5 FOREACH(_testname ${ARGN})
6 kde4_add_unit_test(${_testname} ${_testname}.cpp)
7 target_link_libraries(${_testname} ${KDE4_PHONON_LIBS} ${QT_QTTEST_LIBRARY})
9 ENDMACRO(PHONON_UNIT_TESTS)
11 # same as above but using the fake backend
12 MACRO(PHONON_UNIT_TESTS_FAKE)
13 FOREACH(_testname ${ARGN})
14 kde4_add_unit_test(${_testname}_fake ${_testname}.cpp)
15 target_link_libraries(${_testname}_fake ${KDE4_PHONON_LIBS} ${QT_QTTEST_LIBRARY} phonon_fake)
16 SET_TARGET_PROPERTIES(${_testname}_fake PROPERTIES COMPILE_FLAGS -DUSE_FAKE_BACKEND)
18 ENDMACRO(PHONON_UNIT_TESTS_FAKE)
20 MACRO(PHONON_EXECUTABLE_TESTS)
21 FOREACH(_testname ${ARGN})
22 kde4_add_executable(${_testname} TEST ${_testname}.cpp)
23 target_link_libraries(${_testname} ${KDE4_PHONON_LIBS} ${QT_QTTEST_LIBRARY})
25 ENDMACRO(PHONON_EXECUTABLE_TESTS)
27 PHONON_EXECUTABLE_TESTS(
35 PHONON_UNIT_TESTS_FAKE(
38 #target_link_libraries(audiodevicelisttest ${KDE4_KAUDIODEVICELIST_LIBS})
39 target_link_libraries(mediaplayer ${KDE4_KIO_LIBS})
41 SET(backendtester_SRCS backendtester.cpp)
42 kde4_add_ui_files(backendtester_SRCS backendtester.ui)
43 kde4_add_executable(backendtester TEST ${backendtester_SRCS})
44 target_link_libraries(backendtester ${KDE4_KDEUI_LIBS})