diff --git a/modules/gpu/CMakeLists.txt b/modules/gpu/CMakeLists.txt index 88d59c46e..70428a40b 100644 --- a/modules/gpu/CMakeLists.txt +++ b/modules/gpu/CMakeLists.txt @@ -28,7 +28,7 @@ if (HAVE_CUDA) set(ncv_files ${ncv_srcs} ${ncv_hdrs} ${ncv_cuda}) source_group("Src\\NVidia" FILES ${ncv_files}) - include_directories("src/nvidia/core" "src/nvidia/NPP_staging" ${CUDA_INCLUDE_DIRS}) + include_directories("src/nvidia" "src/nvidia/core" "src/nvidia/NPP_staging" ${CUDA_INCLUDE_DIRS}) #set (CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} "-keep") #set (CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} "-Xcompiler;/EHsc-;") diff --git a/samples/gpu/opticalflow_nvidia_api.cpp b/samples/gpu/opticalflow_nvidia_api.cpp index 51f38361a..313ed710b 100644 --- a/samples/gpu/opticalflow_nvidia_api.cpp +++ b/samples/gpu/opticalflow_nvidia_api.cpp @@ -12,6 +12,7 @@ #include #include #include "opencv2/gpu/gpu.hpp" +#include "opencv2/highgui/highgui.hpp" #ifdef HAVE_CUDA #include "NPP_staging/NPP_staging.hpp"