diff options
Diffstat (limited to 'archived/ptlibzippy/ptlibzippyConfig.cmake.in')
| -rw-r--r-- | archived/ptlibzippy/ptlibzippyConfig.cmake.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/archived/ptlibzippy/ptlibzippyConfig.cmake.in b/archived/ptlibzippy/ptlibzippyConfig.cmake.in new file mode 100644 index 0000000000..3bb9acc344 --- /dev/null +++ b/archived/ptlibzippy/ptlibzippyConfig.cmake.in @@ -0,0 +1,27 @@ +@PACKAGE_INIT@ + +set(_PTLIBZIPPY_supported_components "shared" "static") + +if(PTlibzippy_FIND_COMPONENTS) + foreach(_comp ${PTlibzippy_FIND_COMPONENTS}) + if(NOT _comp IN_LIST _PTLIBZIPPY_supported_components) + set(PTlibzippy_FOUND False) + set(PTlibzippy_NOT_FOUND_MESSAGE "Unsupported component: ${_comp}") + endif(NOT _comp IN_LIST _PTLIBZIPPY_supported_components) + + include("${CMAKE_CURRENT_LIST_DIR}/PTlibzippy-${_comp}.cmake") + endforeach(_comp ${PTlibzippy_FIND_COMPONENTS}) +else(PTlibzippy_FIND_COMPONENTS) + foreach(_component_config IN LISTS _PTLIBZIPPY_supported_components) + set(_component_file "${CMAKE_CURRENT_LIST_DIR}/PTlibzippy-${_component_config}.cmake") + if(NOT EXISTS "${_component_file}") + set(PTlibzippy_FOUND False) + set(PTlibzippy_NOT_FOUND_MESSAGE + "PTlibzippy component '${_component_config}' is not installed. " + "Request COMPONENTS explicitly when only a subset is available.") + return() + endif() + + include("${_component_file}") + endforeach(_component_config IN LISTS _PTLIBZIPPY_supported_components) +endif(PTlibzippy_FIND_COMPONENTS) |
