FindQuickTime.cmake 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #.rst:
  2. # FindQuickTime
  3. # -------------
  4. #
  5. #
  6. #
  7. # Locate QuickTime This module defines QUICKTIME_LIBRARY
  8. # QUICKTIME_FOUND, if false, do not try to link to gdal
  9. # QUICKTIME_INCLUDE_DIR, where to find the headers
  10. #
  11. # $QUICKTIME_DIR is an environment variable that would correspond to the
  12. # ./configure --prefix=$QUICKTIME_DIR
  13. #
  14. # Created by Eric Wing.
  15. #=============================================================================
  16. # Copyright 2007-2009 Kitware, Inc.
  17. #
  18. # Distributed under the OSI-approved BSD License (the "License");
  19. # see accompanying file Copyright.txt for details.
  20. #
  21. # This software is distributed WITHOUT ANY WARRANTY; without even the
  22. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  23. # See the License for more information.
  24. #=============================================================================
  25. # (To distribute this file outside of CMake, substitute the full
  26. # License text for the above reference.)
  27. find_path(QUICKTIME_INCLUDE_DIR QuickTime/QuickTime.h QuickTime.h
  28. HINTS
  29. ENV QUICKTIME_DIR
  30. PATH_SUFFIXES
  31. include
  32. )
  33. find_library(QUICKTIME_LIBRARY QuickTime
  34. HINTS
  35. ENV QUICKTIME_DIR
  36. PATH_SUFFIXES
  37. lib
  38. )
  39. # handle the QUIETLY and REQUIRED arguments and set QUICKTIME_FOUND to TRUE if
  40. # all listed variables are TRUE
  41. include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
  42. FIND_PACKAGE_HANDLE_STANDARD_ARGS(QuickTime DEFAULT_MSG QUICKTIME_LIBRARY QUICKTIME_INCLUDE_DIR)