|
|
@ -2,7 +2,7 @@ SET(OPENCV_GPU_SAMPLES_REQUIRED_DEPS opencv_core opencv_flann opencv_imgproc ope |
|
|
|
opencv_ml opencv_video opencv_objdetect opencv_features2d |
|
|
|
opencv_ml opencv_video opencv_objdetect opencv_features2d |
|
|
|
opencv_calib3d opencv_legacy opencv_contrib opencv_gpu |
|
|
|
opencv_calib3d opencv_legacy opencv_contrib opencv_gpu |
|
|
|
opencv_nonfree opencv_softcascade opencv_superres |
|
|
|
opencv_nonfree opencv_softcascade opencv_superres |
|
|
|
opencv_gpucodec opencv_gpuarithm opencv_gpufilters opencv_gpuwarping opencv_gpuimgproc |
|
|
|
opencv_gpuarithm opencv_gpufilters opencv_gpuwarping opencv_gpuimgproc |
|
|
|
opencv_gpufeatures2d opencv_gpuoptflow opencv_gpubgsegm |
|
|
|
opencv_gpufeatures2d opencv_gpuoptflow opencv_gpubgsegm |
|
|
|
opencv_gpustereo opencv_gpulegacy) |
|
|
|
opencv_gpustereo opencv_gpulegacy) |
|
|
|
|
|
|
|
|
|
|
@ -24,6 +24,10 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND) |
|
|
|
ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/nonfree/include") |
|
|
|
ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/nonfree/include") |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(HAVE_opencv_gpucodec) |
|
|
|
|
|
|
|
ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/gpucodec/include") |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
if(HAVE_CUDA) |
|
|
|
if(HAVE_CUDA) |
|
|
|
ocv_include_directories(${CUDA_INCLUDE_DIRS}) |
|
|
|
ocv_include_directories(${CUDA_INCLUDE_DIRS}) |
|
|
|
endif() |
|
|
|
endif() |
|
|
@ -43,6 +47,9 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND) |
|
|
|
if(HAVE_opencv_nonfree) |
|
|
|
if(HAVE_opencv_nonfree) |
|
|
|
target_link_libraries(${the_target} opencv_nonfree) |
|
|
|
target_link_libraries(${the_target} opencv_nonfree) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
if(HAVE_opencv_gpucodec) |
|
|
|
|
|
|
|
target_link_libraries(${the_target} opencv_gpucodec) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
set_target_properties(${the_target} PROPERTIES |
|
|
|
set_target_properties(${the_target} PROPERTIES |
|
|
|
OUTPUT_NAME "${project}-example-${name}" |
|
|
|
OUTPUT_NAME "${project}-example-${name}" |
|
|
|