comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/share/WebP/cmake/WebPConfig.cmake @ 68:5028fdace37b

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 16:23:26 -0400
parents
children
comparison
equal deleted inserted replaced
67:0e9998148a16 68:5028fdace37b
1 set(WebP_VERSION 1.5.0)
2 set(WEBP_VERSION ${WebP_VERSION})
3
4
5 ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
6 ####### Any changes to this file will be overwritten by the next CMake run ####
7 ####### The input file was WebPConfig.cmake.in ########
8
9 get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
10
11 macro(set_and_check _var _file)
12 set(${_var} "${_file}")
13 if(NOT EXISTS "${_file}")
14 message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
15 endif()
16 endmacro()
17
18 macro(check_required_components _NAME)
19 foreach(comp ${${_NAME}_FIND_COMPONENTS})
20 if(NOT ${_NAME}_${comp}_FOUND)
21 if(${_NAME}_FIND_REQUIRED_${comp})
22 set(${_NAME}_FOUND FALSE)
23 endif()
24 endif()
25 endforeach()
26 endmacro()
27
28 ####################################################################################
29
30 if(TRUE)
31 include(CMakeFindDependencyMacro)
32 find_dependency(Threads REQUIRED)
33 endif()
34
35 include("${CMAKE_CURRENT_LIST_DIR}/WebPTargets.cmake")
36
37 set_and_check(WebP_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/include")
38 set(WebP_INCLUDE_DIRS ${WebP_INCLUDE_DIR})
39 set(WEBP_INCLUDE_DIRS ${WebP_INCLUDE_DIR})
40 set(WebP_LIBRARIES "webpdecoder;webp;webpdemux;webpmux")
41 set(WEBP_LIBRARIES "${WebP_LIBRARIES}")
42
43 check_required_components(WebP)