1 ocv_install_example_src(tapi *.cpp *.hpp CMakeLists.txt)
3 set(OPENCV_TAPI_SAMPLES_REQUIRED_DEPS
14 ocv_check_dependencies(${OPENCV_TAPI_SAMPLES_REQUIRED_DEPS})
16 if(NOT BUILD_EXAMPLES OR NOT OCV_DEPENDENCIES_FOUND)
21 ocv_include_modules_recurse(${OPENCV_TAPI_SAMPLES_REQUIRED_DEPS})
22 file(GLOB all_samples RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
23 foreach(sample_filename ${all_samples})
24 ocv_define_sample(tgt ${sample_filename} tapi)
25 ocv_target_link_libraries(${tgt} LINK_PRIVATE ${OPENCV_LINKER_LIBS} ${OPENCV_TAPI_SAMPLES_REQUIRED_DEPS})