blob: c067aec5efeb8e8c72d31c16d0bf4d1b6eda23f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
macro(example_distcheck example)
add_custom_target(example_${example}_distcheck
${CMAKE_COMMAND}
-DCMAKE_BUILD_TOOL=${CMAKE_BUILD_TOOL}
-DQT_QMAKE_EXECUTABLE=${QT_QMAKE_EXECUTABLE}
-DBINARY_DIR=${CMAKE_CURRENT_BINARY_DIR}
-DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}
-DEXAMPLE=${example}
-P ${CMAKE_CURRENT_SOURCE_DIR}/RunExamplesDistCheck.cmake
)
get_target_property(EXAMPLES_DISTCHECK_TARGET examples_distcheck TYPE)
if(NOT EXAMPLES_DISTCHECK_TARGET)
add_custom_target(examples_distcheck)
endif()
add_dependencies(examples_distcheck example_${example}_distcheck)
endmacro()
add_subdirectory(player)
example_distcheck(player)
add_subdirectory(appsink-src)
example_distcheck(appsink-src)
add_subdirectory(recorder)
example_distcheck(recorder)
add_subdirectory(voip)
example_distcheck(voip)
if (QT_QTDECLARATIVE_FOUND)
add_subdirectory(qmlplayer)
endif()
example_distcheck(qmlplayer)
|