CMakeLists.txt 269 B

123456
  1. set(sample example-tutorial-1-camerapreview)
  2. add_android_project(${sample} "${CMAKE_CURRENT_SOURCE_DIR}" LIBRARY_DEPS "${OPENCV_ANDROID_LIB_DIR}" SDK_TARGET 11 "${ANDROID_SDK_TARGET}")
  3. if(TARGET ${sample})
  4. add_dependencies(opencv_android_examples ${sample})
  5. endif()