mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
world fix
This commit is contained in:
@@ -47,21 +47,21 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
|
||||
set(the_target "example_${project}_${name}")
|
||||
add_executable(${the_target} ${srcs})
|
||||
|
||||
target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_CUDA_SAMPLES_REQUIRED_DEPS})
|
||||
ocv_target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_CUDA_SAMPLES_REQUIRED_DEPS})
|
||||
|
||||
if(HAVE_CUDA AND NOT ANDROID)
|
||||
target_link_libraries(${the_target} ${CUDA_CUDA_LIBRARY})
|
||||
ocv_target_link_libraries(${the_target} ${CUDA_CUDA_LIBRARY})
|
||||
endif()
|
||||
|
||||
if(HAVE_opencv_nonfree)
|
||||
target_link_libraries(${the_target} opencv_nonfree)
|
||||
ocv_target_link_libraries(${the_target} opencv_nonfree)
|
||||
endif()
|
||||
if(HAVE_opencv_cudacodec)
|
||||
target_link_libraries(${the_target} opencv_cudacodec)
|
||||
ocv_target_link_libraries(${the_target} opencv_cudacodec)
|
||||
endif()
|
||||
|
||||
if(HAVE_opencv_ocl)
|
||||
target_link_libraries(${the_target} opencv_ocl)
|
||||
ocv_target_link_libraries(${the_target} opencv_ocl)
|
||||
endif()
|
||||
|
||||
set_target_properties(${the_target} PROPERTIES
|
||||
|
||||
@@ -8,10 +8,10 @@ if(HAVE_opencv_nonfree)
|
||||
endif()
|
||||
|
||||
add_executable(${the_target} ${sources} ${headers})
|
||||
target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_CUDA_SAMPLES_REQUIRED_DEPS})
|
||||
ocv_target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_CUDA_SAMPLES_REQUIRED_DEPS})
|
||||
|
||||
if(HAVE_opencv_nonfree)
|
||||
target_link_libraries(${the_target} opencv_nonfree)
|
||||
ocv_target_link_libraries(${the_target} opencv_nonfree)
|
||||
endif()
|
||||
|
||||
set_target_properties(${the_target} PROPERTIES
|
||||
|
||||
Reference in New Issue
Block a user