|
|
@ -47,6 +47,11 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND) |
|
|
|
add_executable(${the_target} ${srcs}) |
|
|
|
add_executable(${the_target} ${srcs}) |
|
|
|
|
|
|
|
|
|
|
|
target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_GPU_SAMPLES_REQUIRED_DEPS}) |
|
|
|
target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_GPU_SAMPLES_REQUIRED_DEPS}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(HAVE_CUDA) |
|
|
|
|
|
|
|
target_link_libraries(${the_target} ${CUDA_CUDA_LIBRARY}) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
if(HAVE_opencv_nonfree) |
|
|
|
if(HAVE_opencv_nonfree) |
|
|
|
target_link_libraries(${the_target} opencv_nonfree) |
|
|
|
target_link_libraries(${the_target} opencv_nonfree) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|