CMakeLists.txt 692 Bytes
Newer Older
1
set(the_description "Contributed/Experimental Algorithms for Salient 2D Features Detection")
Maksim Shabunin's avatar
Maksim Shabunin committed
2

3
ocv_define_module(xfeatures2d opencv_core opencv_imgproc opencv_features2d opencv_calib3d OPTIONAL opencv_shape opencv_ml opencv_cudaarithm WRAP python java)
Maksim Shabunin's avatar
Maksim Shabunin committed
4

5 6
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/download_vgg.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/download_boostdesc.cmake)
Maksim Shabunin's avatar
Maksim Shabunin committed
7 8 9 10 11 12 13 14
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}")