File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -14,27 +14,19 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
14
14
project ("${project} _samples" )
15
15
16
16
ocv_include_modules_recurse (${OPENCV_CUDA_SAMPLES_REQUIRED_DEPS} )
17
- ocv_include_directories (
18
- "${OpenCV_SOURCE_DIR} /modules/gpu/src/nvidia"
19
- "${OpenCV_SOURCE_DIR} /modules/gpu/src/nvidia/core"
20
- )
21
17
22
18
if (HAVE_opencv_xfeatures2d )
23
- ocv_include_directories ( " ${OpenCV_SOURCE_DIR} /modules/xfeatures2d/include" )
19
+ ocv_include_modules_recurse ( opencv_xfeatures2d )
24
20
endif ()
25
21
26
22
if (HAVE_opencv_cudacodec )
27
- ocv_include_directories ( " ${OpenCV_SOURCE_DIR} /modules/cudacodec/include" )
23
+ ocv_include_modules_recurse ( opencv_cudacodec )
28
24
endif ()
29
25
30
26
if (HAVE_CUDA )
31
27
ocv_include_directories (${CUDA_INCLUDE_DIRS} )
32
28
endif ()
33
29
34
- if (HAVE_OPENCL )
35
- ocv_include_directories ("${OpenCV_SOURCE_DIR} /modules/ocl/include" )
36
- endif ()
37
-
38
30
if (CMAKE_COMPILER_IS_GNUCXX AND NOT ENABLE_NOISY_WARNINGS )
39
31
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function" )
40
32
endif ()
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ file(GLOB sources "performance/*.cpp")
4
4
file (GLOB headers "performance/*.h" )
5
5
6
6
if (HAVE_opencv_xfeatures2d )
7
- ocv_include_directories ( " ${opencv_xfeatures2d_SOURCE_DIR} /include" )
7
+ ocv_include_modules_recurse ( opencv_xfeatures2d )
8
8
endif ()
9
9
10
10
if (HAVE_opencv_bgsegm )
11
- ocv_include_directories ( " ${opencv_bgsegm_SOURCE_DIR} /include" )
11
+ ocv_include_modules_recurse ( opencv_bgsegm )
12
12
endif ()
13
13
14
14
add_executable (${the_target} ${sources} ${headers} )
You can’t perform that action at this time.
0 commit comments