Fixing build with CUDA enabled

pull/13383/head
Andrey Kamaev 13 years ago
parent 690bf07a7f
commit 3ff438dc7a
  1. 2
      samples/gpu/CMakeLists.txt
  2. 1
      samples/gpu/cascadeclassifier_nvidia_api.cpp

@ -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)

@ -7,6 +7,7 @@
#include <iomanip>
#include <cstdio>
#include "opencv2/gpu/gpu.hpp"
#include "opencv2/gpu/highgui.hpp"
#ifdef HAVE_CUDA
#include "NCVHaarObjectDetection.hpp"

Loading…
Cancel
Save