CMakeLists.txt 392 B

123456789101112
  1. set(sample example-face-detection)
  2. if(BUILD_FAT_JAVA_LIB)
  3. set(native_deps opencv_java)
  4. else()
  5. set(native_deps opencv_objdetect)
  6. endif()
  7. add_android_project(${sample} "${CMAKE_CURRENT_SOURCE_DIR}" LIBRARY_DEPS "${OPENCV_ANDROID_LIB_DIR}" SDK_TARGET 11 "${ANDROID_SDK_TARGET}" NATIVE_DEPS ${native_deps})
  8. if(TARGET ${sample})
  9. add_dependencies(opencv_android_examples ${sample})
  10. endif()