CMakeLists.txt 717 B

123456789101112131415161718192021
  1. ocv_install_example_src(opencl *.cpp *.inc CMakeLists.txt)
  2. set(OPENCV_VA_INTEL_SAMPLES_REQUIRED_DEPS
  3. opencv_core
  4. opencv_imgproc
  5. opencv_imgcodecs
  6. opencv_videoio
  7. opencv_highgui)
  8. ocv_check_dependencies(${OPENCV_VA_INTEL_SAMPLES_REQUIRED_DEPS})
  9. if(NOT BUILD_EXAMPLES OR NOT OCV_DEPENDENCIES_FOUND)
  10. return()
  11. endif()
  12. project(va_intel_samples)
  13. ocv_include_modules_recurse(${OPENCV_VA_INTEL_SAMPLES_REQUIRED_DEPS})
  14. file(GLOB all_samples RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
  15. foreach(sample_filename ${all_samples})
  16. ocv_define_sample(tgt ${sample_filename} va_intel)
  17. ocv_target_link_libraries(${tgt} PRIVATE ${OPENCV_LINKER_LIBS} ${OPENCV_VA_INTEL_SAMPLES_REQUIRED_DEPS} ${VA_LIBRARIES})
  18. endforeach()