summaryrefslogtreecommitdiff
path: root/archived/ptlibzippy/contrib/iostream3/iostream3Config.cmake.in
blob: 27d1044c0eac9a0bb78371d7fc6aeb8df0107797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@PACKAGE_INIT@

set(_iostreamv3_supported_components "shared" "static")
include(CMakeFindDependencyMacro)

if(iostreamv3_FIND_COMPONENTS)
    find_dependency(PTlibzippy CONFIG COMPONENTS ${iostreamv3_FIND_COMPONENTS})

    foreach(_comp ${iostreamv3_FIND_COMPONENTS})
        if(NOT _comp IN_LIST _iostreamv3_supported_components)
            set(iostreamv3_FOUND False)
            set(iostreamv3_NOT_FOUND_MESSAGE "Unsupported component: ${_comp}")
        endif(NOT _comp IN_LIST _iostreamv3_supported_components)

        include("${CMAKE_CURRENT_LIST_DIR}/iostreamv3-${_comp}.cmake")
    endforeach(_comp ${iostreamv3_FIND_COMPONENTS})
else(iostream3_FIND_COMPONENTS)
    find_dependency(PTlibzippy CONFIG)

    foreach(_component_config IN LISTS _iostreamv3_supported_components)
        include("${CMAKE_CURRENT_LIST_DIR}/iostreamv3-${_component_config}.cmake")
    endforeach(_component_config IN LISTS _iostreamv3_supported_components)
endif(iostreamv3_FIND_COMPONENTS)