Warning, /graphics/krita/cmake/modules/avcodecs/FindVPX.cmake is written in an unsupported language. File is not indexed.
0001 ############################################################################ 0002 # FindVPX.txt 0003 # Copyright (C) 2014 Belledonne Communications, Grenoble France 0004 # 0005 ############################################################################ 0006 # 0007 # This program is free software; you can redistribute it and/or 0008 # modify it under the terms of the GNU General Public License 0009 # as published by the Free Software Foundation; either version 2 0010 # of the License, or (at your option) any later version. 0011 # 0012 # This program is distributed in the hope that it will be useful, 0013 # but WITHOUT ANY WARRANTY; without even the implied warranty of 0014 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0015 # GNU General Public License for more details. 0016 # 0017 # You should have received a copy of the GNU General Public License 0018 # along with this program; if not, write to the Free Software 0019 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0020 # 0021 ############################################################################ 0022 # 0023 # - Find the VPX include file and library 0024 # 0025 # VPX_FOUND - system has VPX 0026 # VPX_INCLUDE_DIRS - the VPX include directory 0027 # VPX_LIBRARIES - The libraries needed to use VPX 0028 0029 set(_VPX_ROOT_PATHS 0030 ${CMAKE_INSTALL_PREFIX} 0031 ) 0032 0033 find_path(VPX_INCLUDE_DIRS 0034 NAMES vpx/vpx_encoder.h 0035 HINTS _VPX_ROOT_PATHS 0036 PATH_SUFFIXES include 0037 ) 0038 if(VPX_INCLUDE_DIRS) 0039 set(HAVE_VPX_VPX_ENCODER_H 1) 0040 endif() 0041 0042 find_library(VPX_LIBRARIES 0043 NAMES vpx vpxmd 0044 HINTS _VPX_ROOT_PATHS 0045 PATH_SUFFIXES bin lib lib/Win32 0046 ) 0047 0048 include(FindPackageHandleStandardArgs) 0049 find_package_handle_standard_args(VPX 0050 DEFAULT_MSG 0051 VPX_INCLUDE_DIRS VPX_LIBRARIES HAVE_VPX_VPX_ENCODER_H 0052 ) 0053 0054 mark_as_advanced(VPX_INCLUDE_DIRS VPX_LIBRARIES HAVE_VPX_VPX_ENCODER_H)