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