mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
cba300781f
when setting WebP_INCLUDE_DIRS; this value is relative to the WebPConfig.cmake install location (${PACKAGE_PREFIX_DIR}/include) and allows the install to be relocated after creation. See also: https://cmake.org/cmake/help/latest/module/CMakePackageConfigHelpers.html#example-generating-package-files Bug: webp:610 Change-Id: If877625e96584a9808b0bba902e3f0b2a744aa60 Fixed: webp:610
19 lines
487 B
CMake
19 lines
487 B
CMake
set(WebP_VERSION @PROJECT_VERSION@)
|
|
set(WEBP_VERSION ${WebP_VERSION})
|
|
|
|
@PACKAGE_INIT@
|
|
|
|
if(@WEBP_USE_THREAD@)
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(Threads REQUIRED)
|
|
endif()
|
|
|
|
include ("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
|
|
|
|
set_and_check(WebP_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
|
|
set(WEBP_INCLUDE_DIRS ${WebP_INCLUDE_DIRS})
|
|
set(WebP_LIBRARIES "@INSTALLED_LIBRARIES@")
|
|
set(WEBP_LIBRARIES "${WebP_LIBRARIES}")
|
|
|
|
check_required_components(WebP)
|