Improve the CMakeLists.txt files.
[qtgstreamer:qtgstreamer.git] / tests / CMakeLists.txt
1 include_directories(${CMAKE_CURRENT_BINARY_DIR}
2                     ${CMAKE_CURRENT_SOURCE_DIR}/../src/)
3
4 add_definitions(-DQT_NO_KEYWORDS)
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)
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)