Define GST_DISABLE_DEPRECATED to get rid of the stupid libxml2 dependency and raise...
[qtgstreamer:qtgstreamer.git] / tests / CMakeLists.txt
1 include_directories(${CMAKE_CURRENT_BINARY_DIR} ${GSTREAMER_INCLUDE_DIR}
2                     ${GLIB2_INCLUDE_DIR} ${QTGSTREAMER_INCLUDES})
3 add_definitions(${QTGSTREAMER_DEFINITIONS} -DGST_DISABLE_DEPRECATED)
4 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${QTGSTREAMER_FLAGS}")
5
6 macro(qgst_test target)
7     automoc4_add_executable(${target} "${target}.cpp")
8     target_link_libraries(${target} ${QT_QTTEST_LIBRARY} ${GSTREAMER_LIBRARIES}
9                                     ${GOBJECT_LIBRARIES} ${QTGSTREAMER_LIBRARIES})
10     add_test(NAME ${target} COMMAND ${target})
11 endmacro(qgst_test)
12
13 qgst_test(refpointertest)
14 qgst_test(propertiestest)
15 qgst_test(signalstest)
16 qgst_test(valuetest)
17 qgst_test(structuretest)
18 qgst_test(capstest)
19 qgst_test(childproxytest)
20 qgst_test(structstest)
21 qgst_test(parsetest)
22 qgst_test(urihandlertest)
23 qgst_test(bustest)