FindQuickTime.cmake 1011 B

12345678910111213141516171819202122232425262728293031323334
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. #[=======================================================================[.rst:
  4. FindQuickTime
  5. -------------
  6. Locate QuickTime This module defines QUICKTIME_LIBRARY
  7. QUICKTIME_FOUND, if false, do not try to link to gdal
  8. QUICKTIME_INCLUDE_DIR, where to find the headers
  9. $QUICKTIME_DIR is an environment variable that would correspond to the
  10. ./configure --prefix=$QUICKTIME_DIR
  11. Created by Eric Wing.
  12. #]=======================================================================]
  13. find_path(QUICKTIME_INCLUDE_DIR QuickTime/QuickTime.h QuickTime.h
  14. HINTS
  15. ENV QUICKTIME_DIR
  16. PATH_SUFFIXES
  17. include
  18. )
  19. find_library(QUICKTIME_LIBRARY QuickTime
  20. HINTS
  21. ENV QUICKTIME_DIR
  22. PATH_SUFFIXES
  23. lib
  24. )
  25. include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
  26. FIND_PACKAGE_HANDLE_STANDARD_ARGS(QuickTime DEFAULT_MSG QUICKTIME_LIBRARY QUICKTIME_INCLUDE_DIR)