1if(NOT HAVE_CUDA) 2 ocv_module_disable(cudev) 3endif() 4 5set(the_description "CUDA device layer") 6 7ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4189 /wd4505 -Wundef -Wmissing-declarations -Wunused-function -Wunused-variable -Wenum-compare -Wshadow) 8 9ocv_add_module(cudev) 10 11ocv_module_include_directories(opencv_core) 12 13file(GLOB_RECURSE lib_hdrs "include/opencv2/*.hpp") 14file(GLOB lib_srcs "src/*.cpp") 15 16ocv_set_module_sources(HEADERS ${lib_hdrs} SOURCES ${lib_srcs}) 17 18ocv_create_module() 19 20if(BUILD_TESTS) 21 add_subdirectory(test) 22endif() 23