summaryrefslogtreecommitdiff
path: root/contrib/iostream3/iostream3Config.cmake.in
blob: a3db5e8a9c9f8eeed995dcf9608209958f1cab27 (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(ZLIB 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(ZLIB 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)