project("${project}_samples")
ocv_include_modules_recurse(${OPENCV_CUDA_SAMPLES_REQUIRED_DEPS})
- ocv_include_directories(
- "${OpenCV_SOURCE_DIR}/modules/gpu/src/nvidia"
- "${OpenCV_SOURCE_DIR}/modules/gpu/src/nvidia/core"
- )
if(HAVE_opencv_xfeatures2d)
- ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/xfeatures2d/include")
+ ocv_include_modules_recurse(opencv_xfeatures2d)
endif()
if(HAVE_opencv_cudacodec)
- ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/cudacodec/include")
+ ocv_include_modules_recurse(opencv_cudacodec)
endif()
if(HAVE_CUDA)
ocv_include_directories(${CUDA_INCLUDE_DIRS})
endif()
- if(HAVE_OPENCL)
- ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/ocl/include")
- endif()
-
if(CMAKE_COMPILER_IS_GNUCXX AND NOT ENABLE_NOISY_WARNINGS)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function")
endif()
file(GLOB headers "performance/*.h")
if(HAVE_opencv_xfeatures2d)
- ocv_include_directories("${opencv_xfeatures2d_SOURCE_DIR}/include")
+ ocv_include_modules_recurse(opencv_xfeatures2d)
endif()
if(HAVE_opencv_bgsegm)
- ocv_include_directories("${opencv_bgsegm_SOURCE_DIR}/include")
+ ocv_include_modules_recurse(opencv_bgsegm)
endif()
add_executable(${the_target} ${sources} ${headers})