diff --git a/samples/gpu/CMakeLists.txt b/samples/gpu/CMakeLists.txt index 3aa3635408..584fe2a705 100644 --- a/samples/gpu/CMakeLists.txt +++ b/samples/gpu/CMakeLists.txt @@ -17,7 +17,7 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND) ) if(HAVE_CUDA) - include_directories(${CUDA_INCLUDE_DIRS} ${OpenCV_SOURCE_DIR}/modules/gpu/src/nvidia ${OpenCV_SOURCE_DIR}/modules/gpu/src/nvidia/core) + include_directories(${CUDA_INCLUDE_DIRS}) endif() if(CMAKE_COMPILER_IS_GNUCXX) diff --git a/samples/gpu/cascadeclassifier_nvidia_api.cpp b/samples/gpu/cascadeclassifier_nvidia_api.cpp index 528cf0bbd8..41df5d34a3 100644 --- a/samples/gpu/cascadeclassifier_nvidia_api.cpp +++ b/samples/gpu/cascadeclassifier_nvidia_api.cpp @@ -7,6 +7,7 @@ #include #include #include "opencv2/gpu/gpu.hpp" +#include "opencv2/gpu/highgui.hpp" #ifdef HAVE_CUDA #include "NCVHaarObjectDetection.hpp"