2011-06-30 21:37:56 +08:00
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# CMake file for Android samples. See root CMakeLists.txt
|
|
|
|
#
|
|
|
|
# ----------------------------------------------------------------------------
|
2012-03-28 00:05:52 +08:00
|
|
|
add_custom_target(opencv_android_examples)
|
2011-06-30 21:37:56 +08:00
|
|
|
|
2012-06-15 21:04:17 +08:00
|
|
|
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wmissing-declarations)
|
|
|
|
|
2012-03-28 00:05:52 +08:00
|
|
|
add_subdirectory(15-puzzle)
|
|
|
|
add_subdirectory(face-detection)
|
|
|
|
add_subdirectory(image-manipulations)
|
2013-08-08 13:31:25 +08:00
|
|
|
add_subdirectory(camera-calibration)
|
2012-04-27 23:39:46 +08:00
|
|
|
add_subdirectory(color-blob-detection)
|
2013-02-04 21:26:43 +08:00
|
|
|
add_subdirectory(tutorial-1-camerapreview)
|
2013-02-05 17:12:00 +08:00
|
|
|
add_subdirectory(tutorial-2-mixedprocessing)
|
2013-02-05 19:10:34 +08:00
|
|
|
add_subdirectory(tutorial-3-cameracontrol)
|
2011-06-30 21:37:56 +08:00
|
|
|
|
2013-04-17 20:55:05 +08:00
|
|
|
add_subdirectory(native-activity)
|
|
|
|
|
|
|
|
# hello-android sample
|
2012-03-28 00:05:52 +08:00
|
|
|
if(HAVE_opencv_highgui)
|
2014-07-10 22:27:32 +08:00
|
|
|
ocv_include_modules_recurse(opencv_imgcodecs opencv_videoio opencv_highgui opencv_core)
|
2012-03-28 00:05:52 +08:00
|
|
|
add_executable(hello-android hello-android/main.cpp)
|
2014-07-10 22:27:32 +08:00
|
|
|
target_link_libraries(hello-android ${OPENCV_LINKER_LIBS} opencv_imgcodecs opencv_videoio opencv_highgui opencv_core)
|
2012-02-03 19:26:49 +08:00
|
|
|
set_target_properties(hello-android PROPERTIES OUTPUT_NAME hello-android RUNTIME_OUTPUT_DIRECTORY "${EXECUTABLE_OUTPUT_PATH}")
|
2012-03-28 00:05:52 +08:00
|
|
|
add_dependencies(opencv_android_examples hello-android)
|
2011-06-30 21:37:56 +08:00
|
|
|
endif()
|