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
This commit is contained in:
Rok Mandeljc 2014-08-30 00:49:56 +02:00
parent 653bca8b74
commit fbf28bcc63

View File

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