samples: gpu: performance: fix include path for opencv_xfeatures2d

As opencv_xfeatures2d is part of opencv-contrib and not opencv repository,
${OpenCV_SOURCE_DIR}/modules/modules/include is not a correct include
path - use ${opencv_xfeatures2d_SOURCE_DIR}/include instead
pull/3174/head
Rok Mandeljc 11 years ago
parent 653bca8b74
commit fbf28bcc63
  1. 2
      samples/gpu/performance/CMakeLists.txt

@ -4,7 +4,7 @@ file(GLOB sources "performance/*.cpp")
file(GLOB headers "performance/*.h")
if(HAVE_opencv_xfeatures2d)
ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/xfeatures2d/include")
ocv_include_directories("${opencv_xfeatures2d_SOURCE_DIR}/include")
endif()
add_executable(${the_target} ${sources} ${headers})

Loading…
Cancel
Save