mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
896 B
34 lines
896 B
12 years ago
|
if(ANDROID OR IOS)
|
||
|
ocv_module_disable(superres)
|
||
|
endif()
|
||
|
|
||
|
set(the_description "Super Resolution")
|
||
|
ocv_add_module(superres opencv_imgproc opencv_video OPTIONAL opencv_gpu opencv_highgui)
|
||
|
ocv_module_include_directories()
|
||
|
|
||
|
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef /wd4127)
|
||
|
|
||
|
if(HAVE_CUDA)
|
||
|
string(REPLACE "-Wsign-promo" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||
|
|
||
|
ocv_source_group("Src\\Cuda" GLOB "src/cuda/*.cu")
|
||
|
ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/gpu/include" ${CUDA_INCLUDE_DIRS})
|
||
|
|
||
|
file(GLOB lib_cuda "src/cuda/*.cu")
|
||
|
ocv_cuda_compile(cuda_objs ${lib_cuda})
|
||
|
|
||
|
set(cuda_link_libs ${CUDA_LIBRARIES})
|
||
|
else()
|
||
|
set(lib_cuda "")
|
||
|
set(cuda_objs "")
|
||
|
set(cuda_link_libs "")
|
||
|
endif()
|
||
|
|
||
|
ocv_glob_module_sources(SOURCES ${lib_cuda} ${cuda_objs})
|
||
|
|
||
|
ocv_create_module(${cuda_link_libs})
|
||
|
ocv_add_precompiled_headers(${the_module})
|
||
|
|
||
|
ocv_add_accuracy_tests()
|
||
|
ocv_add_perf_tests()
|