Commit fbf28bcc authored by Rok Mandeljc's avatar Rok Mandeljc

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
parent 653bca8b
...@@ -4,7 +4,7 @@ file(GLOB sources "performance/*.cpp") ...@@ -4,7 +4,7 @@ file(GLOB sources "performance/*.cpp")
file(GLOB headers "performance/*.h") file(GLOB headers "performance/*.h")
if(HAVE_opencv_xfeatures2d) if(HAVE_opencv_xfeatures2d)
ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/xfeatures2d/include") ocv_include_directories("${opencv_xfeatures2d_SOURCE_DIR}/include")
endif() endif()
add_executable(${the_target} ${sources} ${headers}) add_executable(${the_target} ${sources} ${headers})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment