mirror of
https://github.com/opencv/opencv.git
synced 2024-12-03 16:35:09 +08:00
6ae4a9b09b
EMBED_CUDA and FORCE_EMBED_OPENCV flags added to cmake macro add_android_project; INSTALL_CUDA_LIBRARIES option added to OpenCV.mk opencv_dynamicuda library installation with enabled OPENCV_INSTALL_MODULES flag fixed; CUDA initialization apportunity added to OpenCVLoader.initDebug(); Tutorial-4-CUDA sample reimplemented with static OpenCV and CUDA initialization.
18 lines
600 B
CMake
18 lines
600 B
CMake
set(sample example-tutorial-4-cuda)
|
|
|
|
ocv_check_dependencies(opencv_core opencv_features2d opencv_java opencv_gpu)
|
|
|
|
if (OCV_DEPENDENCIES_FOUND)
|
|
if(BUILD_FAT_JAVA_LIB)
|
|
set(native_deps opencv_java opencv_gpu)
|
|
else()
|
|
set(native_deps opencv_core opencv_features2d opencv_java opencv_gpu)
|
|
endif()
|
|
|
|
add_android_project(${sample} "${CMAKE_CURRENT_SOURCE_DIR}" LIBRARY_DEPS ${OpenCV_BINARY_DIR} SDK_TARGET 11 ${ANDROID_SDK_TARGET} NATIVE_DEPS ${native_deps} EMBED_CUDA ON FORCE_EMBED_OPENCV ON)
|
|
|
|
if(TARGET ${sample})
|
|
add_dependencies(opencv_android_examples ${sample})
|
|
endif()
|
|
endif()
|