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.
21 lines
929 B
21 lines
929 B
set(the_description "Contributed/Experimental Algorithms for Salient 2D Features Detection") |
|
|
|
if(HAVE_CUDA) |
|
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wundef) |
|
endif() |
|
ocv_define_module(xfeatures2d opencv_core opencv_imgproc opencv_features2d opencv_calib3d OPTIONAL opencv_shape opencv_ml opencv_cudaarithm WRAP python java) |
|
|
|
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/download_vgg.cmake) |
|
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/download_boostdesc.cmake) |
|
set(DOWNLOAD_DIR "${OpenCV_BINARY_DIR}/downloads/xfeatures2d") |
|
download_boost_descriptors("${DOWNLOAD_DIR}" boost_status) |
|
download_vgg_descriptors("${DOWNLOAD_DIR}" vgg_status) |
|
if(NOT boost_status OR NOT vgg_status) |
|
ocv_module_disable(xfeatures2d) |
|
endif() |
|
|
|
ocv_module_include_directories("${DOWNLOAD_DIR}") |
|
|
|
if(TARGET opencv_test_${name}) |
|
ocv_target_include_directories(opencv_test_${name} "${OpenCV_SOURCE_DIR}/modules") # use common files from features2d tests |
|
endif()
|
|
|