samples: gpu: performance: fix include path for opencv_xfeatures2d
authorRok Mandeljc <rok.mandeljc@gmail.com>
Fri, 29 Aug 2014 22:49:56 +0000 (00:49 +0200)
committerRok Mandeljc <rok.mandeljc@gmail.com>
Fri, 29 Aug 2014 23:01:08 +0000 (01:01 +0200)
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

samples/gpu/performance/CMakeLists.txt

index 0b25663..d283c76 100644 (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})