Commit 316fece0 authored by Feng Zhoutian's avatar Feng Zhoutian

fix the problem: the headers of cudev module are not installed if BUILD_opencv_world

parent de85680a
...@@ -10,10 +10,13 @@ ocv_add_module(cudev) ...@@ -10,10 +10,13 @@ ocv_add_module(cudev)
ocv_module_include_directories(opencv_core opencv_hal) ocv_module_include_directories(opencv_core opencv_hal)
file(GLOB_RECURSE lib_hdrs "include/opencv2/*.hpp") file(GLOB_RECURSE lib_hdrs "${CMAKE_CURRENT_LIST_DIR}/include/opencv2/${name}/*.hpp")
file(GLOB lib_srcs "src/*.cpp") file(GLOB lib_srcs "${CMAKE_CURRENT_LIST_DIR}/src/*.cpp")
ocv_set_module_sources(HEADERS ${lib_hdrs} SOURCES ${lib_srcs}) source_group("Include" FILES ${lib_hdrs})
source_group("Src" FILES ${lib_srcs})
ocv_glob_module_sources(HEADERS ${lib_hdrs} SOURCES ${lib_srcs})
ocv_create_module() ocv_create_module()
......
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