1# ----------------------------------------------------------------------------
2#  CMake file for Android samples. See root CMakeLists.txt
3#
4# ----------------------------------------------------------------------------
5add_custom_target(opencv_android_examples)
6
7ocv_warnings_disable(CMAKE_CXX_FLAGS -Wmissing-declarations)
8
9add_subdirectory(15-puzzle)
10add_subdirectory(face-detection)
11add_subdirectory(image-manipulations)
12add_subdirectory(camera-calibration)
13add_subdirectory(color-blob-detection)
14add_subdirectory(tutorial-1-camerapreview)
15add_subdirectory(tutorial-2-mixedprocessing)
16add_subdirectory(tutorial-3-cameracontrol)
17
18# hello-android sample
19if(HAVE_opencv_highgui)
20  add_executable(hello-android hello-android/main.cpp)
21  ocv_target_include_modules_recurse(hello-android opencv_imgcodecs opencv_videoio opencv_highgui opencv_core)
22  ocv_target_link_libraries(hello-android ${OPENCV_LINKER_LIBS} opencv_imgcodecs opencv_videoio opencv_highgui opencv_core)
23  set_target_properties(hello-android PROPERTIES OUTPUT_NAME hello-android RUNTIME_OUTPUT_DIRECTORY "${EXECUTABLE_OUTPUT_PATH}")
24  add_dependencies(opencv_android_examples hello-android)
25endif()
26