# Optional find and confgure VXL dependency

option( KWIVER_ENABLE_DEP_VXL
  "Enable VXL dependent code and plugins (Arrows)"
  ${fletch_ENABLED_VXL}
  )

if( KWIVER_ENABLE_DEP_VXL )
  find_package( VXL REQUIRED )
  include(${VXL_CMAKE_DIR}/UseVXL.cmake)
  include_directories( SYSTEM ${VXL_CORE_INCLUDE_DIR} )
  include_directories( SYSTEM ${VXL_VCL_INCLUDE_DIR} )
  include_directories( SYSTEM ${VXL_RPL_INCLUDE_DIR} )
  link_directories( ${VXL_LIBRARY_DIR} )
endif( KWIVER_ENABLE_DEP_VXL )
