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