From a49e50a33b891a7895bf7395220500a176735ac8 Mon Sep 17 00:00:00 2001 From: Declan Moran Date: Tue, 15 Nov 2016 15:02:10 +0100 Subject: [PATCH] fix error when building android sample: https://github.com/opencv/opencv/issues/7590 --- samples/android/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/android/CMakeLists.txt b/samples/android/CMakeLists.txt index dbb539fc58..1b44a194bd 100644 --- a/samples/android/CMakeLists.txt +++ b/samples/android/CMakeLists.txt @@ -18,8 +18,8 @@ add_subdirectory(tutorial-3-cameracontrol) # hello-android sample if(HAVE_opencv_highgui) add_executable(hello-android hello-android/main.cpp) - ocv_target_include_modules_recurse(hello-android opencv_imgcodecs opencv_videoio opencv_highgui opencv_core) - ocv_target_link_libraries(hello-android ${OPENCV_LINKER_LIBS} opencv_imgcodecs opencv_videoio opencv_highgui opencv_core) + ocv_target_include_modules_recurse(hello-android opencv_imgcodecs opencv_videoio opencv_highgui opencv_core opencv_imgproc) + ocv_target_link_libraries(hello-android ${OPENCV_LINKER_LIBS} opencv_imgcodecs opencv_videoio opencv_highgui opencv_core opencv_imgproc) set_target_properties(hello-android PROPERTIES OUTPUT_NAME hello-android RUNTIME_OUTPUT_DIRECTORY "${EXECUTABLE_OUTPUT_PATH}") add_dependencies(opencv_android_examples hello-android) endif()