您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

57 行
1.7KB

  1. ############################################################################
  2. # FindX264.txt
  3. # Copyright (C) 2015 Belledonne Communications, Grenoble France
  4. #
  5. ############################################################################
  6. #
  7. # This program is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU General Public License
  9. # as published by the Free Software Foundation; either version 2
  10. # of the License, or (at your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program; if not, write to the Free Software
  19. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  20. #
  21. ############################################################################
  22. #
  23. # - Find the x264 include file and library
  24. #
  25. # X264_FOUND - system has x264
  26. # X264_INCLUDE_DIRS - the x264 include directory
  27. # X264_LIBRARIES - The libraries needed to use x264
  28. include(CMakePushCheckState)
  29. include(CheckCXXSymbolExists)
  30. set(_X264_ROOT_PATHS
  31. ${CMAKE_INSTALL_PREFIX}
  32. )
  33. find_path(X264_INCLUDE_DIRS
  34. NAMES x264.h
  35. HINTS _X264_ROOT_PATHS
  36. PATH_SUFFIXES include
  37. )
  38. if(X264_INCLUDE_DIRS)
  39. set(HAVE_X264_H 1)
  40. endif()
  41. find_library(X264_LIBRARIES
  42. NAMES x264
  43. HINTS _X264_ROOT_PATHS
  44. PATH_SUFFIXES bin lib
  45. )
  46. include(FindPackageHandleStandardArgs)
  47. find_package_handle_standard_args(X264
  48. DEFAULT_MSG
  49. X264_INCLUDE_DIRS X264_LIBRARIES HAVE_X264_H
  50. )
  51. mark_as_advanced(X264_INCLUDE_DIRS X264_LIBRARIES HAVE_X264_H)