| 1 |
@PACKAGE_INIT@ |
| 2 |
|
| 3 |
set(_MINIZIP_supported_components "shared" "static") |
| 4 |
include(CMakeFindDependencyMacro) |
| 5 |
|
| 6 |
if(@MINIZIP_ENABLE_BZIP2@) |
| 7 |
find_dependency(BZip2) |
| 8 |
endif(@MINIZIP_ENABLE_BZIP2@) |
| 9 |
|
| 10 |
if(minizip_FIND_COMPONENTS) |
| 11 |
find_dependency(ZLIB CONFIG COMPONENTS ${minizip_FIND_COMPONENTS}) |
| 12 |
|
| 13 |
foreach(_comp ${minizip_FIND_COMPONENTS}) |
| 14 |
if(NOT _comp IN_LIST _MINIZIP_supported_components) |
| 15 |
set(minizip_FOUND False) |
| 16 |
set(minizip_NOT_FOUND_MESSAGE "Unsupported component: ${_comp}") |
| 17 |
endif(NOT _comp IN_LIST _MINIZIP_supported_components) |
| 18 |
|
| 19 |
include("${CMAKE_CURRENT_LIST_DIR}/minizip-${_comp}.cmake") |
| 20 |
endforeach(_comp ${ZLIB_FIND_COMPONENTS}) |
| 21 |
else(minizip_FIND_COMPONENTS) |
| 22 |
find_dependency(ZLIB CONFIG) |
| 23 |
|
| 24 |
foreach(_component_config IN LISTS _MINIZIP_supported_components) |
| 25 |
include("${CMAKE_CURRENT_LIST_DIR}/minizip-${_component_config}.cmake") |
| 26 |
endforeach(_component_config IN LISTS _MINIZIP_supported_components) |
| 27 |
endif(minizip_FIND_COMPONENTS) |