detect_ueye.cmake 657 B

1234567891011121314151617181920212223
  1. if(NOT HAVE_UEYE)
  2. if(WIN32)
  3. if(X86_64)
  4. set(_WIN_LIB_SUFFIX "_64")
  5. endif()
  6. endif()
  7. find_path(UEYE_INCLUDE "ueye.h"
  8. PATHS "${UEYE_ROOT}" ENV UEYE_ROOT "/usr" "C:/Program Files/IDS/uEye/Develop"
  9. HINTS "${regpath}"
  10. PATH_SUFFIXES "include")
  11. find_library(UEYE_LIBRARY ueye_api${_WIN_LIB_SUFFIX}
  12. PATHS "${UEYE_ROOT}" ENV UEYE_ROOT "/usr" "C:/Program Files/IDS/uEye/Develop"
  13. HINTS "${regpath}"
  14. PATH_SUFFIXES "lib")
  15. if(UEYE_INCLUDE AND UEYE_LIBRARY)
  16. set(HAVE_UEYE TRUE)
  17. endif()
  18. endif()
  19. unset(_WIN_LIB_SUFFIX)
  20. if(HAVE_UEYE)
  21. ocv_add_external_target(ueye "${UEYE_INCLUDE}" "${UEYE_LIBRARY}" "HAVE_UEYE")
  22. endif()