CMakeLists.txt 708 B

12345678910111213141516171819202122232425
  1. if(NOT HAVE_CUDA)
  2. ocv_module_disable(cudev)
  3. endif()
  4. set(the_description "CUDA device layer")
  5. ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4189 /wd4505 -Wundef -Wmissing-declarations -Wunused-function -Wunused-variable -Wenum-compare -Wshadow)
  6. ocv_add_module(cudev)
  7. ocv_module_include_directories(opencv_core)
  8. file(GLOB_RECURSE lib_hdrs "${CMAKE_CURRENT_LIST_DIR}/include/opencv2/${name}/*.hpp")
  9. file(GLOB lib_srcs "${CMAKE_CURRENT_LIST_DIR}/src/*.cpp")
  10. source_group("Include" FILES ${lib_hdrs})
  11. source_group("Src" FILES ${lib_srcs})
  12. ocv_glob_module_sources(HEADERS ${lib_hdrs} SOURCES ${lib_srcs})
  13. ocv_create_module()
  14. if(BUILD_TESTS AND NOT BUILD_opencv_world)
  15. add_subdirectory(test)
  16. endif()