Warning, /graphics/digikam/core/cmake/modules/FindX265.cmake is written in an unsupported language. File is not indexed.
0001 # - Try to find X265 library 0002 # Once done this will define 0003 # 0004 # X265_FOUND - system has libx265 0005 # X265_INCLUDE_DIRS - the libx265 include directory 0006 # X265_LIBRARIES - Link these to use libx265 0007 # X265_DEFINITIONS - Compiler switches required for using libx265 0008 # 0009 # SPDX-FileCopyrightText: 2019-2021 Caulier Gilles <caulier dot gilles at gmail dot com> 0010 # 0011 # SPDX-License-Identifier: BSD-3-Clause 0012 # 0013 0014 IF(X265_LIBRARIES AND X265_INCLUDE_DIRS AND X265_DEFINITIONS) 0015 0016 # in cache already 0017 SET(X265_FOUND TRUE) 0018 0019 ELSE() 0020 0021 # use pkg-config to get the directories and then use these values 0022 # in the FIND_PATH() and FIND_LIBRARY() calls 0023 IF(NOT WIN32) 0024 0025 FIND_PACKAGE(PkgConfig) 0026 0027 IF(PKG_CONFIG_FOUND) 0028 0029 PKG_CHECK_MODULES(PC_X265 x265) 0030 0031 ENDIF() 0032 0033 ENDIF() 0034 0035 FIND_PATH(X265_INCLUDE_DIRS x265.h 0036 HINTS ${PC_X265_INCLUDE_DIRS} 0037 ) 0038 0039 FIND_LIBRARY(X265_LIBRARIES NAMES x265 libx265 0040 HINTS ${PC_X265_LIBRARY_DIRS} 0041 ) 0042 0043 SET(X265_DEFINITIONS ${PC_X265_CFLAGS_OTHER}) 0044 0045 INCLUDE(FindPackageHandleStandardArgs) 0046 FIND_PACKAGE_HANDLE_STANDARD_ARGS(X265 0047 REQUIRED_VARS 0048 X265_INCLUDE_DIRS 0049 X265_LIBRARIES 0050 ) 0051 0052 # show the variables only in the advanced view 0053 MARK_AS_ADVANCED(X265_INCLUDE_DIRS X265_LIBRARIES X265_DEFINITIONS) 0054 0055 MESSAGE(STATUS "X265_FOUND = ${X265_FOUND}") 0056 MESSAGE(STATUS "X265_INCLUDE_DIRS = ${X265_INCLUDE_DIRS}") 0057 MESSAGE(STATUS "X265_LIBRARIES = ${X265_LIBRARIES}") 0058 MESSAGE(STATUS "X265_DEFINITIONS = ${X265_DEFINITIONS}") 0059 0060 ENDIF()